Merge pull request #160 from umts/werebus/test-pr #8
This file contains 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: docs | |
on: | |
push: | |
branches: | |
- main | |
- test-main | |
paths: | |
- 'README.md' | |
- 'lib/**/*.rb' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/create-github-app-token@v1 | |
id: docs-github-app-token | |
with: | |
app-id: ${{ vars.DOCS_APP_ID }} | |
private-key: ${{ secrets.DOCS_APP_SECRET_KEY }} | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ steps.docs-github-app-token.outputs.token }} | |
- uses: ./.github/actions/setup | |
- run: 'bin/rake rdoc' | |
- run: |- | |
git config --global user.name 'GitHub Actions' | |
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git add docs/ | |
git commit -m 'Update documentation' || true | |
git push | |
- uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./docs | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
- uses: actions/deploy-pages@v4 |