Skip to content

ci(workflows): pin actions to full sha #14

ci(workflows): pin actions to full sha

ci(workflows): pin actions to full sha #14

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"
jobs:
deploy-website:
name: Deploy Redirect Website
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
with:
submodules: false
- name: Deploy staging site
uses: Azure/static-web-apps-deploy@4d27395796ac319302594769cfe812bd207490b1 # 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-latest
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@4d27395796ac319302594769cfe812bd207490b1 # v1
with:
azure_static_web_apps_api_token: ${{ secrets.SWA_REDIRECT_TOKEN }}
action: close
app_location: redirect/src
skip_deploy_on_missing_secrets: true