CI-Build #1

Closed
joe wants to merge 13 commits from CI-Build into main
Showing only changes of commit 706a5d8b7a - Show all commits

View File

@ -1,19 +1,8 @@
# This file represents 1 workflow. A workflow has multiple jobs. A job has multiple tasks.
name: Publish PDF
# This workflow runs every push
on: push
# If you'd like it only to run on certain branches:
# on:
# push:
# branches: [main, dev]
# pull_request:
# branches: [staging, prod]
# Jobs are run in parallel
jobs:
# This is our one and only job
publish:
runs-on: ubuntu-22.04
steps:
@ -26,13 +15,6 @@ jobs:
run: |
apt -y install curl
curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net |sh
- uses: actions/cache@v3
name: Tectonic cache
with:
path: ~/.cache/Tectonic
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }}
restore-keys: |
${{ runner.os }}-tectonic-
- name: Compile latex
run: ./tectonic main.tex
- name: Rename PDF
@ -45,4 +27,11 @@ jobs:
token: ${{ secrets.token }}
files: |-
${{ steps.extract_branch.outputs.branch }}.pdf
- uses: actions/cache@v3
name: Tectonic cache
with:
path: ~/.cache/Tectonic
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }}
restore-keys: |
${{ runner.os }}-tectonic-