Skip to content

Commit

Permalink
ADD gh-pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
kimushun1101 committed Aug 3, 2024
1 parent d9743d8 commit 0900635
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Apache-2.0 license
# Copyright 2024 Yuku Kotani, Shunsuke Kimura
# 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
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}How-to-use-typst-for-paper-jp.pdf
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/configure-pages@v3
- 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/How-to-use-typst-for-paper-jp.pdf
- uses: actions/upload-pages-artifact@v2
with:
path: ./out
- uses: actions/deploy-pages@v1
id: deployment

0 comments on commit 0900635

Please sign in to comment.