Skip to content

Commit ca6ac0d

Browse files
chore(NODE-4075): add docs generation workflow (#3189)
1 parent 7bffb7b commit ca6ac0d

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build_docs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and commit docs
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
build:
13+
14+
# prevent subsequent commits from triggering the job multiple times
15+
concurrency:
16+
group: ci-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Setup NodeJS
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: 16.x
27+
cache: 'npm'
28+
- name: Install Dependencies
29+
run: |
30+
npm ci
31+
sudo apt-get install hugo
32+
- name: Build Docs
33+
run: npm run build:docs -- --yes
34+
- name: Open Pull Request
35+
uses: peter-evans/create-pull-request@v4
36+
with:
37+
title: 'docs: generate docs from latest main'
38+
delete-branch: true

0 commit comments

Comments
 (0)