Skip to content

Commit 963f117

Browse files
committed
updated deployed.yml
1 parent 9523fde commit 963f117

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

.github/workflows/deploy.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
1-
name: Build & Deploy Docs Site
1+
name: Deploy Combined Docs
22

33
on:
44
push:
55
branches: [ main ]
66
workflow_dispatch:
77

8+
permissions:
9+
contents: write
10+
811
jobs:
9-
build-and-deploy:
12+
deploy:
1013
runs-on: ubuntu-latest
1114
steps:
12-
# 1. Checkout this umbrella repo
1315
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
1418

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
1822
19-
# 3. Run Antora build
20-
- name: Build site
23+
- name: Build Antora site
2124
run: npx antora antora-playbook.yml --to-dir=build/site
2225

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
2628
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

0 commit comments

Comments
 (0)