Skip to content

chore: GitHub Actions fix #7

chore: GitHub Actions fix

chore: GitHub Actions fix #7

Workflow file for this run

name: Build Typst document
on: [push, workflow_dispatch]
jobs:
build-thesis-template:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Japanese fonts
run: |
sudo apt-get update && sudo apt-get install -y fonts-noto fonts-ipafont unzip wget
wget "https://github.com/yuru7/udev-gothic/releases/download/v1.3.1/UDEVGothic_v1.3.1.zip"
unzip ./UDEVGothic_v1.3.1.zip
sudo cp UDEVGothic_v1.3.1/*.ttf /usr/share/fonts/opentype/udev-gothic/
fc-cache -fv
- name: Typst
uses: lvignoli/typst-action@main
with:
source_file: |
卒論・修論用/main.typ
リアペ・レポート用/main.typ
- name: Upload PDF file
uses: actions/upload-artifact@v3
with:
name: PDF
path: "*.pdf"
- name: Date
env:
TZ: "Asia/Tokyo"
run: echo "CURRENT_DATETIME=$(date --iso-8601=minutes)" >> $GITHUB_ENV
- name: Git Auto Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "auto-updated: ${{ env.CURRENT_DATETIME }}"