You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.4 KiB
YAML

1 year ago
name: Build Adventurer's Guide
run-name: ${{ github.actor }} is building Adventurer's Guide
1 year ago
on:
push:
branches:
- main
1 year ago
jobs:
Build-PDF:
1 year ago
runs-on: texlive-2023-04-09
1 year ago
permissions:
contents: read
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }}."
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
1 year ago
1 year ago
- name: Install node
1 year ago
run: apt-get update && apt-get install -y nodejs
1 year ago
1 year ago
- name: Check out repository code
uses: actions/checkout@v3
with:
submodules: recursive
1 year ago
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
1 year ago
1 year ago
- name: Build PDF with `latexmk`
1 year ago
run: latexmk -pdf
1 year ago
1 year ago
- name: Publish package
1 year ago
env:
PACKAGE_UPLOAD_TOKEN: ${{ secrets.PACKAGE_UPLOAD_TOKEN }}
1 year ago
run: |
1 year ago
curl --user henine:$PACKAGE_UPLOAD_TOKEN -X DELETE \
1 year ago
https://git.raptorpond.com/api/packages/KaRTS/generic/adventurers_guide/latest/
1 year ago
curl --user henine:$PACKAGE_UPLOAD_TOKEN \
1 year ago
--fail-with-body \
1 year ago
--upload-file "Adventurer's Guide to Savits.pdf" \
1 year ago
https://git.raptorpond.com/api/packages/KaRTS/generic/adventurers_guide/latest/adventurers_guide.pdf