Repository navigation
chore(deps): bump axios from 1.8.4 to 1.15.0 in /frontend #58
Workflow file for this run
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 deployment | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'frontend/**' | |
| - '.github/workflows/azure-static-web-apps.yml' | |
| pull_request: | |
| types: [opened, synchronize, reopened, closed] | |
| branches: | |
| - main | |
| paths: | |
| - 'frontend/**' | |
| - '.github/workflows/azure-static-web-apps.yml' | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| frontend_non_test: ${{ steps.filter.outputs.frontend_non_test }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| frontend_non_test: | |
| - 'frontend/**' | |
| - '!frontend/tests/**' | |
| build_and_deploy: | |
| needs: changes | |
| if: needs.changes.outputs.frontend_non_test == 'true' | |
| runs-on: ubuntu-latest | |
| name: Build and Deploy Job | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: | | |
| cd frontend | |
| npm ci | |
| - name: Build | |
| run: | | |
| cd frontend | |
| npm run build | |
| - name: Copy staticwebapp.config.json to dist | |
| run: cp frontend/staticwebapp.config.json frontend/dist/staticwebapp.config.json | |
| - name: List dist contents | |
| run: ls -l frontend/dist/ | |
| - name: Deploy to Azure Static Web Apps | |
| 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" | |
| app_location: "frontend" | |
| output_location: "dist" | |
| env: | |
| # Vite environment variables must be set as GitHub secrets for builds in Actions | |
| VITE_API_URL: ${{ secrets.VITE_API_URL }} |