Skip to content

1 integrate debug dumps #26

1 integrate debug dumps

1 integrate debug dumps #26

Workflow file for this run

name: Build SWA
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
workflow_dispatch:
jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
name: Build and Deploy Job
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Create .env file
uses: SpicyPizza/create-envfile@v1
with:
envkey_REACT_APP_SITE_NAME: ${{ secrets.REACT_APP_SITE_NAME }}
envkey_REACT_APP_REPO_URL: ${{ secrets.REACT_APP_REPO_URL }}
envkey_REACT_APP_API_URL: ${{ secrets.REACT_APP_API_URL }}
directory: swa
- name: Build And Deploy
id: builddeploy
env:
CI: false
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/swa" # App source code path
output_location: "build" # Built app content directory - optional
###### End of Repository/Build Configurations ######
close_pr:
if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
needs:
- build_and_deploy_job
permissions:
contents: write
pull-requests: write
steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Merge PR
if: steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' || steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor'
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}