-
Notifications
You must be signed in to change notification settings - Fork 36
51 lines (44 loc) · 1.46 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
42
43
44
45
46
47
48
49
50
51
name: Build docs
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
pull-requests: write
steps:
# Create an access token for the Github Actions Bot app. This one has permissions
# to push directly to this repository (only!) without required status checks.
- uses: actions/create-github-app-token@v1
id: github-actions-bot-app-token
with:
app-id: 819772
private-key: ${{ secrets.APOLLO_GITHUB_ACTIONS_BOT_PRIVATE_KEY }}
# Check out the repository, using the Github Actions Bot app's token so that we
# can push later and override required statuses.
- name: Checkout repo
uses: actions/checkout@v4
with:
token: ${{ steps.github-actions-bot-app-token.outputs.token }}
- name: Setup Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: "yarn"
- run: yarn install --immutable
- name: Create Docs
run: |
yarn run build:libs
yarn run build:docmodel
yarn workspace monorepo docs
- name: Commit changes back
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update Docs"
push_options: ""
skip_dirty_check: false