From 0efc0c493d3e0317cdc47d09e233a5ff4113cc90 Mon Sep 17 00:00:00 2001 From: Maximilian Jakob Maag Date: Fri, 13 Mar 2026 14:27:07 +0000 Subject: [PATCH 1/4] release workflow --- .github/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..9d799d4 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,29 @@ +name: Build PDFs + +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install TeX Live + run: | + sudo apt-get update -y + sudo apt-get install -y texlive-full make + + - name: Compile PDFs + run: make && make clean + + - name: Upload PDFs + uses: actions/upload-artifact@v4 + with: + name: compiled-pdfs + path: | + **/*.pdf \ No newline at end of file From 53aa1d8ec196a3e95a18083e0baec73ce9e0d3f9 Mon Sep 17 00:00:00 2001 From: Maximilian Jakob Maag Date: Fri, 13 Mar 2026 14:29:15 +0000 Subject: [PATCH 2/4] save --- .github/{ => workflows}/release.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/release.yml (100%) diff --git a/.github/release.yml b/.github/workflows/release.yml similarity index 100% rename from .github/release.yml rename to .github/workflows/release.yml From f8f9e33d8d4c743d707ed374cdea34b6483953eb Mon Sep 17 00:00:00 2001 From: Maximilian Jakob Maag Date: Fri, 13 Mar 2026 14:32:18 +0000 Subject: [PATCH 3/4] add pdfs to release page --- .github/workflows/release.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d799d4..6f31665 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,9 +21,8 @@ jobs: - name: Compile PDFs run: make && make clean - - name: Upload PDFs - uses: actions/upload-artifact@v4 + - name: Create Release + uses: softprops/action-gh-release@v2 with: - name: compiled-pdfs - path: | + files: | **/*.pdf \ No newline at end of file From 09573e1bb623d1bf964ac3cc1bbdd34866f7d12f Mon Sep 17 00:00:00 2001 From: Maximilian Jakob Maag Date: Fri, 13 Mar 2026 14:53:45 +0000 Subject: [PATCH 4/4] save --- .github/workflows/release.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f31665..921fdfe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,28 +1,25 @@ -name: Build PDFs +name: Release PDFs on: - pull_request: - branches: - - main + push: + tags: + - "v*" jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v4 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - - name: Install TeX Live - run: | + - run: | sudo apt-get update -y sudo apt-get install -y texlive-full make - - name: Compile PDFs - run: make && make clean + - run: make && make clean - - name: Create Release - uses: softprops/action-gh-release@v2 + - uses: softprops/action-gh-release@v2 with: - files: | - **/*.pdf \ No newline at end of file + files: "**/*.pdf" \ No newline at end of file