Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

CompatHelper: bump compat for Turing to 0.27, (drop existing compat) #126

CompatHelper: bump compat for Turing to 0.27, (drop existing compat)

CompatHelper: bump compat for Turing to 0.27, (drop existing compat) #126

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
pull_request:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Python is necessary for the pre-rendering (minification) step
- name: Install python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- uses: julia-actions/setup-julia@v1
with:
version: '1.7'
- name: Build site
run: |
julia --project -e '
using Pkg; Pkg.add("NodeJS");
Pkg.instantiate();
using NodeJS; run(`$(npm_cmd()) install highlight.js`);
using Franklin; optimize(); verify_links()' > build.log;
cat build.log
env:
# Fixes 'GKS: can't connect to GKS socket application' errors
# and quality of output plots in GR back end.
GKSwstype: nul
- name: Remove unneeded folders
# Without removing these, it seems that Franklin will just copy them to __site.
run: rm -rf __site/data
- name: Deploy to GitHub Pages
if: ${{ github.event_name != 'pull_request' }}
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
# To reduce state.
clean: true
# To save space; we don't really need older versions.
single-commit: true
folder: __site
# The site is deployed even if an error occurs to ease debugging.
- name: Validate output
run: |
# A Franklin Warning means an error occurred when evaluating code.
if grep -1 "Franklin Warning" build.log; then
echo "Franklin reported a warning"
exit 1
else
echo "Franklin did not report a warning"
fi