-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: support auto-release after pushing new tags
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
release: | ||
runs-on: macos-latest | ||
permissions: | ||
contents: write | ||
env: | ||
TYPST_ARCH: typst-x86_64-apple-darwin | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Update Homebrew | ||
run: brew update | ||
- name: Install Typst | ||
run: brew install typst | ||
- name: Install fonts | ||
run: | | ||
brew tap homebrew/cask-fonts | ||
brew install --cask font-twitter-color-emoji | ||
- name: Build PDF | ||
run: typst compile undergradmath.typ | ||
- name: Upload PDF as artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Undergradmath | ||
path: undergradmath.pdf | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: ${{ github.ref_name }} | ||
files: undergradmath.pdf |