test systemcrafter's website publishing strategy #2
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: Publish to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v1 | |
- name: Check out the style repo | |
run: git clone --depth 1 https://git.sr.ht/~daviwil/daviwil.com daviwil.com | |
- name: Install Emacs | |
uses: purcell/setup-emacs@master | |
with: | |
version: 27.2 | |
- name: Build the site | |
run: | | |
cp -R daviwil.com/public . | |
emacs --batch -l ./publish.el --funcall dw/publish | |
- name: Link Checker | |
uses: lycheeverse/lychee-action@v1.0.8 | |
with: | |
args: --verbose --no-progress ./public/**/*.html | |
- name: Publish generated content to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@4.1.4 | |
with: | |
branch: gh-pages | |
folder: public |