name: Deploy to GitHub Pages on: push: branches: - main permissions: contents: write jobs: deploy: name: Deploy to GitHub Pages runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 - name: Clone fonts repository run: git clone https://github.com/touying-typ/fonts.git fonts --depth=1 - name: Set up Python uses: actions/setup-python@v4 with: python-version: '3.x' - name: Install Touying Exporter run: pip install touying - name: Build HTML File run: | mkdir build touying compile presentation.typ --output build/index.html --format html --font-paths fonts - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages folder: build