File tree 1 file changed +17
-14
lines changed 1 file changed +17
-14
lines changed Original file line number Diff line number Diff line change 1
- name : Build & Deploy Docs Site
1
+ name : Deploy Combined Docs
2
2
3
3
on :
4
4
push :
5
5
branches : [ main ]
6
6
workflow_dispatch :
7
7
8
+ permissions :
9
+ contents : write
10
+
8
11
jobs :
9
- build-and- deploy :
12
+ deploy :
10
13
runs-on : ubuntu-latest
11
14
steps :
12
- # 1. Checkout this umbrella repo
13
15
- uses : actions/checkout@v3
16
+ with :
17
+ fetch-depth : 0
14
18
15
- # 2. Install Antora CLI & site generator
16
- - name : Install Antora
17
- run : npm install --global @antora/cli @antora/site-generator-default
19
+ - name : Install Antora CLI and extensions
20
+ run : |
21
+ npm install @antora/cli @antora/site-generator-default @antora/lunr-extension @antora/pdf-extension asciidoctor-kroki
18
22
19
- # 3. Run Antora build
20
- - name : Build site
23
+ - name : Build Antora site
21
24
run : npx antora antora-playbook.yml --to-dir=build/site
22
25
23
- # 4. Deploy to GitHub Pages
24
- - name : Deploy
25
- uses : peaceiris/actions-gh-pages@v3
26
+ - name : Deploy to GitHub Pages
27
+ uses : JamesIves/github-pages-deploy-action@v4
26
28
with :
27
- github_token : ${{ secrets.GITHUB_TOKEN }}
28
- publish_dir : build/site
29
- publish_branch : gh-pages # or omit to default to gh-pages
29
+ folder : build/site
30
+ branch : gh-pages
31
+ clean : true
32
+ force : true
You can’t perform that action at this time.
0 commit comments