-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (49 loc) · 1.37 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
runs-on: macos-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- 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: Install git-cliff
run: brew install git-cliff
- name: Generate changelog
id: generate-changelog
run: |
echo "changelog<<EOF" >> $GITHUB_OUTPUT
git cliff -vv -s all -l >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
git cliff -vv -s all -l
- name: Print changelog
run: |
echo "${{ steps.generate-changelog.outputs.changelog }}"
- name: Release
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.generate-changelog.outputs.changelog }}
name: ${{ github.ref_name }}
files: undergradmath.pdf