From 9cb47baf78d984a152486749d133b48dc586ba44 Mon Sep 17 00:00:00 2001 From: rickysixx <51907568+rickysixx@users.noreply.github.com> Date: Sat, 17 Feb 2024 16:03:07 +0100 Subject: [PATCH] aggiunto github workflow per buildare i file typst --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ef263a6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build Typst documents +on: [push, workflow_dispatch] + +permissions: + contents: write + +jobs: + build_typst_documents: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - name: Build Typst documents + uses: lvignoli/typst-action@main + with: + source_file: | + algoritmi-di-crittografia/riassunto.typ + - name: Upload PDF files + uses: actions/upload-artifact@v4 + with: + name: PDFs + path: | + algoritmi-di-crittografia/riassunto.pdf + - name: Get current date + id: date + run: echo "DATE=$(date +%Y-%m-%d_%H:%M)" >> $GITHUB_ENV + - name: Create release + uses: softprops/action-gh-release@v1 + if: github.ref_type == 'tag' + with: + name: "${{ github.ref_name }} — ${{ env.DATE }}" + files: | + algoritmi-di-crittografia/riassunto.pdf