Skip to content

Commit

Permalink
Update azure-static-web-apps-lively-cliff-06d04ff03.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Yariki authored Mar 10, 2024
1 parent cd9d940 commit 3880c6c
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/azure-static-web-apps-lively-cliff-06d04ff03.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,38 @@ on:
- master

jobs:
build_and_deploy_job:
build:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
name: Build Job
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '20.x'

- name: Install dependencies, build, and test
run: |
npm install
npm run build --if-present
npm run test --if-present
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: node-app
path: build # This should be your distribution path, not the root path

deploy:
- name: Build And Deploy
id: builddeploy
needs:
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LIVELY_CLIFF_06D04FF03 }}
Expand All @@ -33,14 +54,4 @@ jobs:
output_location: "build" # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_LIVELY_CLIFF_06D04FF03 }}
action: "close"

0 comments on commit 3880c6c

Please sign in to comment.