From d7a8a468fc1e59c0903393f38f66f452b7580e5e Mon Sep 17 00:00:00 2001 From: maperez42 Date: Tue, 1 Oct 2024 08:36:45 +0200 Subject: [PATCH] MV - actions worfklows --- .github/workflows/make-it.yml | 32 +++++++++++++++++++ .../{latex-builder.yml => release-it.yml} | 3 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/make-it.yml rename .github/workflows/{latex-builder.yml => release-it.yml} (95%) diff --git a/.github/workflows/make-it.yml b/.github/workflows/make-it.yml new file mode 100644 index 0000000..4f36478 --- /dev/null +++ b/.github/workflows/make-it.yml @@ -0,0 +1,32 @@ +name: Latex Builder + +on: [push] + +jobs: + make-it: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install LaTex utilities + run: sudo apt-get install -y texlive-full + - name: Get version from file + id: get_version + run: echo "VERSION=version/$(cat version)" >> $GITHUB_ENV + - name: Name release from version + id: get_release + run: echo "RELEASE=release_$(cat version)" >> $GITHUB_ENV + - name: Build PDFs + run: make + - name: Upload PDFs archives + uses: actions/upload-artifact@v4 + with: + name: modules.pdf + path: | + build/module00.pdf + build/module01.pdf + build/module02.pdf + build/module03.pdf + build/module04.pdf \ No newline at end of file diff --git a/.github/workflows/latex-builder.yml b/.github/workflows/release-it.yml similarity index 95% rename from .github/workflows/latex-builder.yml rename to .github/workflows/release-it.yml index ba701b5..454fb47 100644 --- a/.github/workflows/latex-builder.yml +++ b/.github/workflows/release-it.yml @@ -3,10 +3,11 @@ name: Latex Builder on: [push] jobs: - make-it: + release-it: permissions: contents: write runs-on: ubuntu-latest + if: contains(github.ref, 'master') steps: - name: Checkout repository uses: actions/checkout@v4