Copy over azure config to dist #1511
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Azure Static Web Apps CI/CD | |
on: | |
push: | |
branches: | |
- main | |
repository_dispatch: | |
types: [definition_update] | |
jobs: | |
build_and_deploy_job: | |
runs-on: ubuntu-latest | |
name: Build and Deploy Job | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
# - uses: actions/setup-node@v3 | |
# with: | |
# node-version: 18 | |
- name: Use Bun | |
uses: oven-sh/setup-bun@v1 | |
- name: bun install, and start | |
run: | | |
bun install | |
bun run build:azure | |
cp staticwebapp.config.json ./dist | |
- name: Build And Deploy | |
id: builddeploy | |
uses: Azure/static-web-apps-deploy@v1 | |
with: | |
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_DELIGHTFUL_PEBBLE_09D5B2410 }} | |
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 | |
skip_app_build: true # App source code path | |
skip_api_build: true | |
###### End of Repository/Build Configurations ###### | |
is_static_export: true | |
app_location: '/github/workspace/dist' | |
output_location: '' |