upload build artifacts and latex action only on workflow dispatch
All checks were successful
Build Typst document / build_typst_documents (push) Successful in 8s

This commit is contained in:
lukas-heilgenbrunner 2024-10-28 16:05:52 +01:00
parent 2663f1814b
commit 815e3b582a
3 changed files with 8 additions and 5 deletions

View File

@ -1,10 +1,7 @@
name: Build LaTeX Document
on:
push:
branches:
- master # This will run the action when you push to the main branch
pull_request:
workflow_dispatch:
jobs:
build:
@ -32,4 +29,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: compiled-latex
path: src/main.pdf
path: src/main.pdf

View File

@ -11,3 +11,8 @@ jobs:
uses: lvignoli/typst-action@main
with:
source_file: typstalt/main.typ
- name: Upload PDF file
uses: actions/upload-artifact@v3
with:
name: PDF
path: typstalt/main.pdf

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.pdf