Update docs website #69
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 docs website | |
| on: | |
| workflow_run: | |
| workflows: [.NET CI] | |
| types: [completed] | |
| branches: [master] | |
| jobs: | |
| build_and_commit: | |
| name: Build & commit docs website | |
| runs-on: ubuntu-slim | |
| if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| - name: Setup build dependencies | |
| uses: ./.github/actions/setup-build-dependencies | |
| - name: Restore third party libs | |
| uses: ./.github/actions/restore-dependencies | |
| - name: Remove old docs | |
| run: dotnet clean CSF.Screenplay.Docs | |
| - name: Build new docs | |
| run: dotnet build -c Docs CSF.Screenplay.Docs | |
| - name: Add & Commit | |
| uses: EndBug/add-and-commit@v9.1.4 | |
| with: | |
| add: -A docs/ | |
| default_author: github_actor | |
| committer_name: Github Actions Workflow (bot) | |
| committer_email: github-actions-workflow@bots.noreply.github.com | |
| fetch: true | |
| message: Publish updated documentation website | |
| push: origin master | |