Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Actions for generating thumbs #3

Merged
merged 2 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/build-posters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,27 @@ jobs:
- name: Setup typst
uses: typst-community/setup-typst@v3

- name: Build
- name: Build PDF
run: typst compile posters.typ --font-path . posters.pdf

- name: Build PNG Previews
run: |
mkdir thumbnails
typst compile posters.typ --font-path . thumbnails/posters-{0p}.png
zip posters.zip thumbnails/*.png

- name: Upload PDF file
uses: actions/upload-artifact@v4
with:
name: PDF
name: Poster PDF File
path: "*.pdf"

- name: Upload PNG Thumbs
uses: actions/upload-artifact@v4
with:
name: PNG Thumbs
path: "posters.zip"

- name: Get current date
id: date
run: echo "DATE=$(date +%Y-%m-%d-%H:%M)" >> $GITHUB_ENV
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
alejandra
typst
tinymist
zip
];
};
}
Expand Down