This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
ci: 🐛 use set up actions for typst and just #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Typst document | |
on: [push, workflow_dispatch] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Typst | |
uses: typst-community/[email protected] | |
- name: Setup just | |
uses: extractions/setup-just@v2 | |
- name: Clone Notebookinator | |
uses: actions/checkout@v4 | |
with: | |
repository: darkMatter781x/notebookinator | |
path: ./notebookinator | |
ref: main | |
- name: Install Notebookinator | |
run: | | |
cd notebookinator | |
just install | |
- name: Compile Notebook | |
run: | | |
typst compile main.typ --font-path ./assets/fonts/ | |
- name: Upload PDF file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: notebook | |
path: main.pdf |