From 94f2b226070d5757250285adeb3d5009220a53d8 Mon Sep 17 00:00:00 2001 From: HeNine <> Date: Sat, 20 May 2023 10:31:47 +0200 Subject: [PATCH] build --- .gitea/workflows/build.yaml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..55980ac --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,40 @@ +name: Build Metaphysics +run-name: ${{ github.actor }} is building Metaphysics +on: + push: + branches: + - main + +jobs: + Build-PDF: + runs-on: texlive-2023-04-09 + 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 }}." + + - name: Install node + run: apt-get update && apt-get install -y nodejs + + - name: Check out repository code + uses: actions/checkout@v3 + with: + submodules: recursive + + - run: echo "The ${{ github.repository }} repository has been cloned to the runner." + + - name: Build PDF with `latexmk` + run: latexmk -pdf + + - name: Publish package + env: + PACKAGE_UPLOAD_TOKEN: ${{ secrets.PACKAGE_UPLOAD_TOKEN }} + run: | + curl --user henine:$PACKAGE_UPLOAD_TOKEN -X DELETE \ + https://git.raptorpond.com/api/packages/KaRTS/generic/metaphysics/latest/ + curl --user henine:$PACKAGE_UPLOAD_TOKEN \ + --fail-with-body \ + --upload-file "On The Metaphysics Of Savits.pdf" \ + https://git.raptorpond.com/api/packages/KaRTS/generic/metaphysics/latest/metaphysics.pdf