Generate gh-pages / Set next BenchmarkDotNet version: 0.15.4 #24
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: generate-gh-pages | |
| run-name: Generate gh-pages / ${{ github.event.head_commit.message }} | |
| on: | |
| push: | |
| branches: | |
| - docs-stable | |
| workflow_dispatch: | |
| permissions: write-all | |
| jobs: | |
| generate: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: docs-stable | |
| - name: Build BenchmarkDotNet | |
| run: ./build.cmd build | |
| - name: Fetch changelog | |
| run: ./build.cmd docs-fetch --depth 1 --preview --force-clone | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build documentation | |
| run: ./build.cmd docs-build | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: site | |
| path: docs/_site | |
| deploy: | |
| concurrency: ci-${{ github.ref }} | |
| needs: [generate] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: docs-stable | |
| - name: Download Artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: site | |
| path: site | |
| - name: Print file tree | |
| run: tree $GITHUB_WORKSPACE | |
| - name: Deploy documentation | |
| uses: JamesIves/[email protected] | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| BRANCH: gh-pages | |
| FOLDER: site | |
| GIT_CONFIG_NAME: Andrey Akinshin | |
| GIT_CONFIG_EMAIL: [email protected] | |
| CLEAN: true |