Fix mdoc workflow: set git identity for gh-pages deploy #2
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: Website | |
| on: | |
| push: | |
| branches: [master] | |
| tags: ["*"] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: 11 | |
| distribution: temurin | |
| - uses: sbt/setup-sbt@v1 | |
| - uses: olafurpg/setup-gpg@v3 | |
| - run: | | |
| git config --global user.name "GitHub Actions" | |
| git config --global user.email "actions@github.com" | |
| sbt '++2.13.18; docs/docusaurusPublishGhpages' | |
| env: | |
| GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }} | |
| - name: Check git diff | |
| if: ${{ failure() }} | |
| run: git diff |