From 2f0eb4bb21c5830f8dc739ed0e9bcc853df59ee6 Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Thu, 10 Apr 2025 17:48:15 +0300 Subject: [PATCH] ci: add release --- .github/workflows/typst.yml | 43 +++++++++++++++++++++++++++++++++++++ .gitignore | 2 ++ main.typ | 2 -- requirements.typ | 0 4 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/typst.yml create mode 100644 requirements.typ diff --git a/.github/workflows/typst.yml b/.github/workflows/typst.yml new file mode 100644 index 0000000..4ad79db --- /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 sula-alus-rfc.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: | + sula-alus-rfc.pdf diff --git a/.gitignore b/.gitignore index ea8c4bf..cbf0b25 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /target +/files +*.pdf diff --git a/main.typ b/main.typ index fe498a3..22a38c5 100644 --- a/main.typ +++ b/main.typ @@ -1,6 +1,5 @@ #let fill = box(width: 1fr, repeat(sym.space)) - #set heading(numbering: "1.1.") #show heading: set text(12pt) @@ -9,7 +8,6 @@ it.indented(it.prefix(), it.body()), ) - #set par(justify: true) Network Working Group #fill T. Developer \ diff --git a/requirements.typ b/requirements.typ new file mode 100644 index 0000000..e69de29