Skip to content

Merge pull request #73 from borondics/bump_lychee_version #577

Merge pull request #73 from borondics/bump_lychee_version

Merge pull request #73 from borondics/bump_lychee_version #577

Workflow file for this run

name: Push to GitHub Pages on push to master
on:
schedule:
# every day at midnight: https://crontab.guru/every-midnight
- cron: '0 0 * * *'
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v1
- name: Build hugo page
run: |
wget https://github.com/gohugoio/hugo/releases/download/v0.49.2/hugo_0.49.2_Linux-64bit.deb
sudo dpkg -i hugo*.deb
rm -rf public 2> /dev/null
rm *.deb
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
# Disabled for now due to spurious timeouts
#- name: Refresh citations
# run: |
# pip install https://github.com/scholarly-python-package/scholarly/archive/refs/heads/main.zip
# pip install toml
# python scripts/update_citations.py
- name: Build conda index
run: |
conda install conda-build
cd static/conda
conda index
cd ../..
- name: Build page
run: |
hugo
echo 'quasar.codes' > public/CNAME
touch public/.nojekyll
# Deploy to local repo
- name: Deploy
if: github.ref == 'refs/heads/master'
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: public
SKIP_EMPTY_COMMITS: True
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Link Checker
uses: lycheeverse/[email protected]
with:
args: "--verbose --no-progress './public/**/*.html'"
fail: true