Skip to content

Commit

Permalink
Try generating outputs in /tmp as a workaround for $GITHUB_WORKSPACE
Browse files Browse the repository at this point in the history
(/__w/...) confusing asciidoctor-pdf, until there's a fix for
https://github.com/asciidoctor/asciidoctor-pdf/issues/1888
  • Loading branch information
oddhack committed Mar 10, 2021
1 parent 9cc7b45 commit 580c667
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Unfortunately, asciidoctor-pdf gets pathname-specific errors
# building under the usual $GITHUB_WORKSPACE (/__w). As a workaround,
# generate the outputs in /tmp.

- name: Build spec targets
run: |
cd adoc
make QUIET= html pdf
make OUTDIR=/tmp/out QUIET= html pdf
- name: Archive generated files
uses: actions/upload-artifact@v2
with:
name: spec-outputs
path: |
adoc/out/
/tmp/out

0 comments on commit 580c667

Please sign in to comment.