Skip to content

Commit 07a0248

Browse files
author
Marek Suchánek
authored
Install asciidoctor in CI
1 parent 38dd564 commit 07a0248

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

.github/workflows/pages.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,7 @@ concurrency:
2121
cancel-in-progress: true
2222

2323
jobs:
24-
# Build the Asciidoc documentation
25-
build:
26-
runs-on: ubuntu-latest
27-
container: asciidoctor/docker-asciidoctor:latest
28-
steps:
29-
- name: Checkout
30-
uses: actions/checkout@v3
31-
- name: Build documentation
32-
run: asciidoctor --safe -vn docs/using-newdoc.adoc --out-file=index.html
33-
- name: Upload artifact
34-
uses: actions/upload-pages-artifact@v1
35-
with:
36-
# Upload the generated HTML file
37-
path: 'index.html'
38-
# Publish the built documentation
24+
# Build and publish the documentation
3925
deploy:
4026
environment:
4127
name: github-pages
@@ -44,10 +30,12 @@ jobs:
4430
steps:
4531
- name: Checkout
4632
uses: actions/checkout@v3
47-
- name: Dowload artifact
48-
uses: actions/download-artifact@v1
49-
with:
50-
path: "index.html"
33+
# We have to install asciidoctor on Ubuntu because the asciidoctor container
34+
# comes with limited coreutils that can't upload artifacts (tar limitation).
35+
- name: Install asciidoctor
36+
run: apt-get update && apt-get --assume-yes install asciidoctor
37+
- name: Build documentation
38+
run: asciidoctor --safe -vn docs/using-newdoc.adoc --out-file=index.html
5139
- name: Setup Pages
5240
uses: actions/configure-pages@v2
5341
- name: Upload artifact

0 commit comments

Comments
 (0)