diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..fc34a4c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +on: + push: + pull_request: + workflow_run: + +name: Build and deploy + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - name: Download Tectonic + run: + wget "https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.15.0/tectonic-0.15.0-x86_64-unknown-linux-musl.tar.gz" && + tar -xf "tectonic-0.15.0-x86_64-unknown-linux-musl.tar.gz" + + - name: Build LaTeX handouts + run: bash build.sh + + - uses: actions/upload-artifact@v3 + with: + name: output + path: "output/*" + retention-days: 10