update git guide #15
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
name: Build & Release Typst Documents | |
on: [push, workflow_dispatch] | |
permissions: | |
contents: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: typst-community/setup-typst@v3 | |
- run: | | |
curl -LO https://github.com/microsoft/cascadia-code/releases/download/v2404.23/CascadiaCode-2404.23.zip | |
unzip CascadiaCode-2404.23.zip -d ~/cascadia-code | |
sudo cp ~/cascadia-code/otf/static/*.otf /usr/local/share/fonts | |
sudo fc-cache -f -v | |
typst compile java-swing-mvc.typ java-swing-mvc.pdf | |
typst compile git.typ git.pdf | |
- uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
automatic_release_tag: 'latest' | |
prerelease: false | |
files: | | |
java-swing-mvc.pdf | |
git.pdf | |
- uses: dev-drprasad/[email protected] | |
with: | |
keep_latest: 1 | |
delete_tags: true | |
delete_tag_pattern: latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# - uses: softprops/action-gh-release@v1 | |
# if: github.ref_type == 'tag' | |
# with: | |
# name: "${{ github.ref_name }} — ${{ env.DATE }}" | |
# files: | | |
# java-swing-mvc.pdf | |
# git.pdf |