Skip to content

release: update changelog for 1.2.0 release #7

release: update changelog for 1.2.0 release

release: update changelog for 1.2.0 release #7

Workflow file for this run

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