Skip to content

Change bibtex example (#47) #202

Change bibtex example (#47)

Change bibtex example (#47) #202

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- master
pull_request:
jobs:
gh-pages:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache example fonts
uses: actions/cache@v2
with:
path: |
.fonts
.sources
key: fonts-${{ hashFiles('Makefile-fonts') }}
- name: Cache example artifacts
uses: actions/cache@v2
with:
path: |
static/examples
key: examples-${{ hashFiles('Makefile', 'data/examples.toml', 'content/examples/*.sil', 'content/examples/*.xml', 'content/examples/*.lua') }}
- name: Install Nix
uses: cachix/install-nix-action@v17
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Install project dependencies
run: |
nix-channel --update
nix-shell --run true
nix-shell --run 'sile --version'
nix run github:sile-typesetter/sile#sile -- --version
- name: Generate example artifacts
run: |
nix-shell --run 'make examples'
- name: Generate static site pages
run: |
nix-shell --run 'make public'
- name: Inject CNAME
if: ${{ github.repository == 'sile-typesetter/sile-typesetter.github.io' }}
run: |
nix-shell --run 'make public/CNAME'
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true