Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
abjarna committed May 24, 2024
2 parents a51bf4c + 9dc0d38 commit 635405b
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/azure-static-web-apps-polite-coast-0c606ef03.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: DEV - Azure Static Web Apps CI/CD

on:
push:
branches:
- dev
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- dev

jobs:

build_and_deploy_job:

if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: DEV - Build and Deploy Job
steps:

- name: ALL - Checkout
uses: actions/checkout@v4
with:
submodules: true
lfs: false

- name: ALL
uses: ./yaml/azure-ritsafn-all

- name: DEV
uses: ./yaml/azure-ritsafn-dev

- name: DEV - Build And Deploy
id: dev-builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_POLITE_COAST_0C606EF03 }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
app_location: "rit/_build/html"
api_location: ""
output_location: ""

close_pull_request_job:

if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: DEV - Close Pull Request Job
steps:

- name: DEV - Close Pull Request
id: dev-closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_POLITE_COAST_0C606EF03 }}
action: "close"

0 comments on commit 635405b

Please sign in to comment.