Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sorawit committed Jul 9, 2024
1 parent be789be commit 4817b9a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/pandoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@ jobs:
- name: Generate PDF with Pandoc
run: docker run --rm --volume "${{ github.workspace }}:/data" --user `id -u`:`id -g` custom-pandoc-latex doc.md -o doc.pdf --template=/data/template.tex

- name: Move PDF to a temporary directory
run: |
mkdir -p output
mv doc.pdf output/doc.pdf
- name: Upload artifact to be deployed to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: doc.pdf
path: output

deploy:
runs-on: ubuntu-latest
Expand All @@ -39,4 +44,4 @@ jobs:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}name
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4817b9a

Please sign in to comment.