From ea3b28939be5f23cf7a789adea77ee5e2163442e Mon Sep 17 00:00:00 2001 From: Vlad Maltsev Date: Mon, 7 Oct 2024 01:33:26 +0300 Subject: [PATCH] Test integration --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++++ main.typ | 1 + 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 main.typ diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..bd019b8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: Build Typst document +on: [push, workflow_dispatch] + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Typst + uses: lvignoli/typst-action@main + with: + source_file: | + first_file.typ + second_file.typ + third_and_final_file.typ + + - name: Upload PDF file + uses: actions/upload-artifact@v3 + with: + name: PDF + path: *.pdf + + - name: Get current date + id: date + run: echo "DATE=$(date +%Y-%m-%d-%H:%M)" >> $GITHUB_ENV + + - name: Release + uses: softprops/action-gh-release@v1 + if: github.ref_type == 'tag' + with: + name: "${{ github.ref_name }} — ${{ env.DATE }}" + files: main.pdf diff --git a/main.typ b/main.typ new file mode 100644 index 0000000..e2fd4ff --- /dev/null +++ b/main.typ @@ -0,0 +1 @@ +#include "books/edna-zeenhoffer.typ"