Skip to content

Commit

Permalink
update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lkndl authored Jan 15, 2025
1 parent f446884 commit 3b1a513
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
name: build Typst document
name: compile Typst documents
on: [push, workflow_dispatch, pull_request]

jobs:
build_typst_documents:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Typst
uses: lvignoli/typst-action@main
with:
source_file: main.typ
options: |
--font-path
modules/fonts
- name: Upload PDF file
uses: actions/upload-artifact@v4
with:
path: main.pdf
- name: Checkout Repository
- uses: actions/checkout@v4
- name: Compile Typst Files
uses: ammar-ahmed22/compile-typst-action@v1
with:
source_paths: main.typ
output_paths: main-gh-action.pdf
fonts_path: modules/fonts
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: PDF
path: '**/*.pdf'

0 comments on commit 3b1a513

Please sign in to comment.