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
| on: push | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| # Single deploy job no building | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{steps.deployment.outputs.page_url}} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| - name: Install Packwiz | |
| run: go install github.com/packwiz/packwiz@latest | |
| # Refresh Packwiz, to avoid \n and \r\n conflicts (yes, this has happened. many times.) | |
| - name: Run Packwiz Refresh | |
| run: packwiz refresh | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| with: | |
| token: ${{secrets.GITHUB_TOKEN}} | |
| enablement: true | |
| - name: Upload Artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| # upload entire directory | |
| path: '.' | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |