forked from trypsynth/paperback
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 1.04 KB
/
Copy pathsite.yml
File metadata and controls
32 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Build & Deploy Website
on:
push:
branches: [ master ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Cobalt
run: |
wget https://github.com/cobalt-org/cobalt.rs/releases/download/v0.20.4/cobalt-v0.20.4-x86_64-unknown-linux-gnu.tar.gz
tar -xzf cobalt-*.tar.gz
sudo mv cobalt /usr/local/bin/
- name: Install Pandoc
run: sudo apt-get update && sudo apt-get install -y pandoc
- name: Build README with Pandoc
run: pandoc --defaults=doc/pandoc.yaml doc/readme.md -o readme.html
- name: Build Cobalt site
run: cobalt build
working-directory: web
- name: Copy README to site
run: cp readme.html web/_site/readme.html
- name: Copy CNAME to site
run: cp CNAME web/_site/CNAME
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: web/_site