raidboss: DMU P4 fake entropy reminder + earlier P5 track (#1117) #946
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: Update gh-pages | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| check-gh-pages: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| found: ${{ steps.check-gh-pages.outputs.found }} | |
| steps: | |
| - name: Check gh-pages Exists | |
| id: check-gh-pages | |
| shell: bash | |
| run: | | |
| GITHUB_URL="https://github.com/${{ github.repository }}" | |
| if git ls-remote --exit-code --heads $GITHUB_URL gh-pages; then | |
| echo "found=true" >> $GITHUB_OUTPUT | |
| echo "gh-pages branch found. Updating..." | |
| else | |
| echo "found=false" >> $GITHUB_OUTPUT | |
| echo "gh-pages branch not found. Skipping..." | |
| fi | |
| update-gh-pages: | |
| runs-on: ubuntu-latest | |
| needs: check-gh-pages | |
| if: needs.check-gh-pages.outputs.found == 'true' | |
| permissions: | |
| contents: write | |
| pull-requests: read | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/setup-js-env | |
| - name: Build | |
| run: | | |
| npm run coverage-report | |
| npm run build-gh-pages | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./dist | |
| force_orphan: true | |
| user_name: "github-actions" | |
| user_email: "github-actions@github.com" | |
| commit_message: "gh-pages build: ${{ github.event.head_commit.message }}" | |
| enable_jekyll: true # Don't commit the .nojekyll file |