-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
automatically create pdf releases from markdown notes (#44)
- Loading branch information
Showing
3 changed files
with
98 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Create PDF release from markdown | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
convert_via_pandoc_and_release: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
mkdir output | ||
- uses: docker://pandoc/latex:2.9 | ||
with: | ||
args: --output=output/DBS.pdf --pdf-engine=xelatex -V geometry:margin=3cm DBS/README.md | ||
- uses: docker://pandoc/latex:2.9 | ||
with: | ||
args: --output=output/SWE.pdf --pdf-engine=xelatex -V geometry:margin=3cm SWE/README.md | ||
- uses: docker://pandoc/latex:2.9 | ||
with: | ||
args: --output=output/PRO.pdf --pdf-engine=xelatex -V geometry:margin=3cm PRO/README.md | ||
- uses: docker://pandoc/latex:2.9 | ||
with: | ||
args: --output=output/RES.pdf --pdf-engine=xelatex -V geometry:margin=3cm RES/README.md | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: output | ||
path: output | ||
- run: | | ||
zip --junk-paths pdfs output/DBS.pdf output/SWE.pdf output/RES.pdf output/PRO.pdf | ||
- uses: meeDamian/[email protected] | ||
with: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
tag: pdf-release | ||
name: PDFs | ||
body: Automated release | ||
gzip: false | ||
files: output/DBS.pdf | ||
allow_override: true | ||
- uses: meeDamian/[email protected] | ||
with: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
tag: pdf-release | ||
name: PDFs | ||
body: Automated release | ||
gzip: false | ||
files: output/PRO.pdf | ||
allow_override: true | ||
- uses: meeDamian/[email protected] | ||
with: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
tag: pdf-release | ||
name: PDFs | ||
body: Automated release | ||
gzip: false | ||
files: output/SWE.pdf | ||
allow_override: true | ||
- uses: meeDamian/[email protected] | ||
with: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
tag: pdf-release | ||
name: PDFs | ||
body: Automated release | ||
gzip: false | ||
files: output/RES.pdf | ||
allow_override: true |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters