mirror of
https://github.com/NullHypothesis/censorbib.git
synced 2025-07-24 15:05:37 -04:00
28 lines
585 B
YAML
28 lines
585 B
YAML
name: Deploy website
|
|
on:
|
|
push:
|
|
branches:
|
|
master
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
deploy-website:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install and Build
|
|
run: |
|
|
go build -C src -o ../compiler
|
|
mkdir build
|
|
mv assets build
|
|
./compiler -path references.bib > build/index.html
|
|
|
|
- name: Deploy
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
with:
|
|
# Must be identical to where we wrote the HTML to.
|
|
folder: build
|