Skip to content

feat: init ams template #2

feat: init ams template

feat: init ams template #2

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches: ["main"]
tags: ["v*.*.*"]
pull_request:
branches: ["main"]
permissions:
contents: write
jobs:
build:
runs-on: macos-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v3
- name: 🧰 Download Typst
uses: robinraju/[email protected]
with:
repository: typst/typst
tag: v0.11.0
fileName: typst-x86_64-apple-darwin.tar.xz
- name: 🧰 Extract Typst
shell: bash
run: |
sudo mkdir /usr/local/typst
sudo tar -xzf typst-x86_64-apple-darwin.tar.xz -C /usr/local/typst/
rm -f typst-x86_64-apple-darwin.tar.xz
echo "/usr/local/typst/typst-x86_64-apple-darwin" >> $GITHUB_PATH
- name: 📘 Compile
shell: bash
run: ./build.sh
- name: 📦 Upload artifacts
uses: actions/upload-artifact@v3
with:
name: docs
path: src/*.pdf
- name: 🚀 Release
uses: softprops/action-gh-release@v1
if: github.ref_type == 'tag'
with:
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
files: "src/*.pdf"