Skip to content

Commit

Permalink
ci: rework antora building flow
Browse files Browse the repository at this point in the history
  • Loading branch information
esynr3z committed May 25, 2024
1 parent ca01326 commit f162195
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}

- name: Build and run Antora
run: |
docker run -u $(id -u) -v $PWD:/antora:Z --rm -t antora/antora antora-playbook.yml --cache-dir=/tmp/.antora-cache
uses: addnab/docker-run-action@v3
with:
image: antora/antora:2.3.1
options: -u $(id -u) -v $PWD:/antora:Z --rm -t
run: antora antora-playbook.yml --cache-dir=/tmp/.antora-cache

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
Expand Down

0 comments on commit f162195

Please sign in to comment.