Centred Scheme #40
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
name: Build and Release | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
jobs: | |
publish_linux_amd64: | |
name: Build LaTeX and Publish Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
name: Setup Tectonic cache | |
with: | |
path: ~/.cache/Tectonic | |
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }} | |
restore-keys: | | |
${{ runner.os }}-tectonic- | |
- uses: wtfjoke/setup-tectonic@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build | |
run: make | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: build/Summary.pdf | |
asset_name: Summary.pdf | |
tag: ${{ github.ref }} | |
overwrite: true | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'build' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |