File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments