Skip to content

Commit

Permalink
ci: support auto-release after pushing new tags
Browse files Browse the repository at this point in the history
  • Loading branch information
johanvx committed Apr 18, 2023
1 parent 16a59c9 commit 764a9e1
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
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

0 comments on commit 764a9e1

Please sign in to comment.