Update actions/checkout action to v6 #222
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: Build and Deploy Pages | |
| on: | |
| push: | |
| branches: ["exampleSite"] | |
| pull_request: | |
| branches: ["exampleSite"] | |
| jobs: | |
| build: | |
| name: Build Website | |
| runs-on: ubuntu-24.04 | |
| container: hugomods/hugo:reg-git-0.152.2 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - name: Install GNU tar | |
| run: apk add tar | |
| - name: Build the site | |
| run: hugo --minify | |
| - name: Upload GitHub Pages Artifact | |
| uses: actions/upload-pages-artifact@v4.0.0 | |
| with: | |
| path: public | |
| deploy: | |
| name: Deploy Pages | |
| if: github.ref == 'refs/heads/exampleSite' | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| needs: [build] | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |