Merge pull request #200 from make-software/mrkara-patch-1 #42
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: ci-docs | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-20.04 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v1 | |
| - uses: extractions/setup-just@v1 | |
| - run: just prepare | |
| - run: just rebuild-docs | |
| - run: git config --local user.email "action@github.com" | |
| - run: git config --local user.name "GitHub Action" | |
| - run: git add -f docs/ | |
| - run: git commit -m "Docs" | |
| - run: git config --global --add safe.directory /github/workspace | |
| - name: Push to gh-pages | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: gh-pages | |
| force: true | |
| directory: . |