commit c0122a03fb7c0ffa813e5c7d459c86946f111ec1 Author: Kristofers Solo Date: Fri Jun 13 16:31:58 2025 +0300 Initial commit diff --git a/.github/workflows/typst.yml b/.github/workflows/typst.yml new file mode 100644 index 0000000..2963428 --- /dev/null +++ b/.github/workflows/typst.yml @@ -0,0 +1,43 @@ +name: Release +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+*" + workflow_dispatch: + inputs: + version: + description: 'Version number in the format `v1.2.3`' + required: true + type: string +permissions: + contents: write + packages: read +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install Typst + uses: typst-community/setup-typst@v3 + with: + typst-version: 0.13 + cache-dependency-path: requirements.typ + - name: Compile Typst files + run: | + typst compile main.typ main.pdf + - name: Upload PDF file + uses: actions/upload-artifact@v4 + 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/.gitignore b/.gitignore new file mode 100644 index 0000000..68cae0c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/target +*.pdf diff --git a/bibliography.yml b/bibliography.yml new file mode 100644 index 0000000..e69de29 diff --git a/main.typ b/main.typ new file mode 100644 index 0000000..e69de29 diff --git a/requirements.typ b/requirements.typ new file mode 100644 index 0000000..e69de29