Skip to content

Commit

Permalink
Test integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Shedward committed Oct 6, 2024
1 parent 0de3803 commit ea3b289
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions main.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "books/edna-zeenhoffer.typ"

0 comments on commit ea3b289

Please sign in to comment.