Skip to content

chore(test)

chore(test) #73

Workflow file for this run

name: Build Typst document
on: [push, workflow_dispatch]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: rickstaa/action-create-tag@v1
if: github.ref_type != 'tag'
with:
tag: "ci_latest"
tag_exists_error: false
force_push_tag: true
- name: Setup upterm session
uses: lhotari/action-upterm@v1
with:
## limits ssh access and adds the ssh public key for the user which triggered the workflow
limit-access-to-actor: true
- uses: typst-community/setup-typst@v3
- name: Run
run: |
./setup-font.sh
./compile.sh
- name: Upload Build files
uses: actions/upload-artifact@v3
with:
name: PDFs
path: |
./build
- name: Get current date
id: date
run: echo "DATE=$(date +%Y-%m-%d-%H:%M)" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
name: "${{ github.ref_name }} — ${{ env.DATE }}"
files: "./build/*"
make_latest: false
- name: Release
uses: softprops/action-gh-release@v2
if: github.ref_type != 'tag'
with:
name: "${{ github.ref_name }} — ${{ env.DATE }}"
files: "./build/*"
tag_name: ci_latest
make_latest: true