Skip to content

FIX uplod pages artifact v3 #40

FIX uplod pages artifact v3

FIX uplod pages artifact v3 #40

Workflow file for this run

# 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@v3
with:
path: ./out
- uses: actions/deploy-pages@v1
id: deployment