Skip to content

Commit

Permalink
feat(react)!: update swa cicd pt2
Browse files Browse the repository at this point in the history
  • Loading branch information
victorfrye committed Oct 7, 2024
1 parent 2a304e6 commit 1b4fa48
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/azure-swa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ env:
NODE_VERSION: '22.x'

jobs:
build_and_deploy_job:
build_and_deploy:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
environment: ${{ github.event_name == 'push' && 'Production' || 'Staging' }}
name: Build and Deploy
environment:
name: ${{ github.event_name == 'push' && 'Production' || 'Staging' }}
url: ${{ steps.deploy.outputs.static_web_app_url }}
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -58,10 +60,10 @@ jobs:
skip_app_build: true
skip_api_build: true

close_pull_request_job:
close_pr:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
name: Close Pull Request
steps:
- name: Close pull request
id: closepullrequest
Expand Down

0 comments on commit 1b4fa48

Please sign in to comment.