Skip to content

Commit 5bb0eb3

Browse files
author
Marek Suchánek
committed
Use the asciidoctor container for Pages
1 parent bfa73f0 commit 5bb0eb3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/pages.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ jobs:
2727
name: github-pages
2828
url: ${{ steps.deployment.outputs.page_url }}
2929
runs-on: ubuntu-latest
30+
container: asciidoctor/docker-asciidoctor
3031
steps:
3132
- name: Checkout
3233
uses: actions/checkout@v3
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: sudo apt-get update && sudo apt-get --assume-yes install asciidoctor
34+
# The asciidoctor container is built on Alpine and contains only a Busybox tar.
35+
# Github Actions need GNU tar for its options.
36+
- name: Install tar
37+
run: apk add tar
3738
- name: Build documentation
3839
run: asciidoctor --safe -vn docs/using-newdoc.adoc --out-file=docs/index.html
3940
- name: Setup Pages

0 commit comments

Comments
 (0)