Skip to content

Commit

Permalink
feat: add pdf release github action
Browse files Browse the repository at this point in the history
  • Loading branch information
peeweep committed Jan 12, 2022
1 parent 3277d92 commit 2b6e526
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pdf-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release PDF

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Pull Docker Image
run: docker pull myml/texlive-render:latest
- name: Build PDF
run: |
# run twice to generate table of contents
docker run -v `pwd`:/worker -u root --workdir /worker --entrypoint=lualatex myml/texlive-render --output-format pdf --shell-escape ./deepin-styleguide.tex
docker run -v `pwd`:/worker -u root --workdir /worker --entrypoint=lualatex myml/texlive-render --output-format pdf --shell-escape ./deepin-styleguide.tex
- name: Upload PDF to release artifacts
uses: softprops/action-gh-release@v1
with:
files: deepin-styleguide.pdf

0 comments on commit 2b6e526

Please sign in to comment.