Bump actions/upload-artifact from 4 to 6 #5892
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: Build and Deploy Website | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| release: | |
| types: [published] | |
| workflow_dispatch: # Manual trigger for testing | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'yarn' | |
| cache-dependency-path: website/yarn.lock | |
| - name: Run build script | |
| run: ./build.sh | |
| shell: bash | |
| deploy: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' | |
| needs: build | |
| steps: | |
| - name: Trigger Netlify Deploy | |
| run: | | |
| curl -X POST -d {} "${{ secrets.NETLIFY_DEPLOY_WEBHOOK }}" | |
| env: | |
| NETLIFY_DEPLOY_WEBHOOK: ${{ secrets.NETLIFY_DEPLOY_WEBHOOK }} |