-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.05 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 [skip ci]' || 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