Skip to content

Commit 057b277

Browse files
committed
feat[docs.yml]: use asciidoctor-ghpages-action
1 parent afe12a0 commit 057b277

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,14 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
23-
24-
# 1. Dokumentation mit Asciidoctor bauen (unter Verwendung von Docker)
25-
- name: Build Documentation
26-
uses: docker://asciidoctor/docker-asciidoctor
27-
with:
28-
args: asciidoctor -R docs -D build/site/html -a docinfo=shared -a toc=left -a toclevels=2 'docs/index.adoc'
29-
30-
# 2. Deployment zu gh-pages
31-
- name: Deploy to GitHub Pages
23+
24+
25+
# Includes the AsciiDoctor GitHub Pages Action to convert adoc files to html and publish to gh-pages branch
26+
- name: asciidoctor-ghpages
3227
if: github.ref == 'refs/heads/main'
33-
uses: peaceiris/actions-gh-pages@v3
28+
uses: manoelcampos/asciidoctor-ghpages-action@v2
3429
with:
35-
github_token: ${{ secrets.GITHUB_TOKEN }}
36-
publish_dir: ./build/site/html
37-
publish_branch: gh-pages
30+
pdf_build: false
31+
source_dir: docs/
32+
asciidoctor_attributes: "docinfo=shared toc=left toclevels=2"
33+

0 commit comments

Comments
 (0)