Repository navigation
Merge pull request #19 from LuzTech-Development/fix/container2wasm-ca… #32
This file contains hidden or 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 | |
| workflow_dispatch: | |
| concurrency: | |
| group: azure-swa-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build_and_deploy: | |
| runs-on: ubuntu-latest | |
| name: Build and Deploy | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: true | |
| lfs: true | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| run_install: false | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| # `pnpm run build` runs astro check + astro build + pagefind indexing, | |
| # so `dist/` already contains the fully populated site (including | |
| # `dist/pagefind/*`). We tell the SWA action to skip its own build | |
| # step with `skip_app_build: true` and just upload what we produced. | |
| - name: Build | |
| run: pnpm run build | |
| - name: Deploy | |
| id: builddeploy | |
| 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 }} | |
| action: upload | |
| app_location: 'dist' | |
| output_location: '' | |
| skip_app_build: true |