Start drafting v0.15 release summary #171
Workflow file for this run
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: 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 |