Update deploy pages v4 #42
Workflow file for this run
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
# Apache-2.0 license | |
# Copyright 2024 Yuku Kotani | |
# Refer to https://github.com/yukukotani/typst-coins-thesis/blob/main/.github/workflows/gh-pages.yml | |
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
- test/gh-actions | |
# workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }}typst-jp-conf.pdf | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/configure-pages@v5 | |
# - name: Install fonts | |
# run: | | |
# sudo apt-get update | |
# sudo apt-get install -y fonts-noto fonts-noto-cjk fonts-noto-cjk-extra | |
- uses: typst-community/setup-typst@v3 | |
- name: Compile | |
run: | | |
mkdir ./out | |
typst compile ./main.typ ./out/typst-jp-conf.pdf | |
- uses: actions/upload-pages-artifact@v2 | |
with: | |
path: ./out | |
- uses: actions/deploy-pages@v4 | |
id: deployment |