Skip to content

Upmerge docs to edge #22

Upmerge docs to edge

Upmerge docs to edge #22

Workflow file for this run

# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
---
name: Radius Redirect
on:
workflow_dispatch:
push:
branches:
- edge
- v*.*
paths:
- "redirect/**"
- ".github/workflows/redirect.yml"
pull_request:
branches:
- edge
- v*.*
paths:
- "redirect/**"
- ".github/workflows/redirect.yml"
permissions: {}
jobs:
deploy-website:
name: Deploy Redirect Website
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
contents: read
steps:
- name: Checkout repo
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
submodules: false
persist-credentials: false
- name: Deploy staging site
uses: Azure/static-web-apps-deploy@1a947af9992250f3bc2e68ad0754c0b0c11566c9 # v1
with:
azure_static_web_apps_api_token: ${{ secrets.SWA_REDIRECT_TOKEN }}
action: upload
app_location: redirect/src
skip_api_build: true
skip_app_build: true
skip_deploy_on_missing_secrets: true
close_pr_site:
name: Close PR Staging Site
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
contents: read
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@1a947af9992250f3bc2e68ad0754c0b0c11566c9 # v1
with:
azure_static_web_apps_api_token: ${{ secrets.SWA_REDIRECT_TOKEN }}
action: close
app_location: redirect/src
skip_deploy_on_missing_secrets: true