update trqlt #39
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: Pages | |
on: | |
push: | |
branches: | |
- main # default branch | |
jobs: | |
pages: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write | |
container: | |
image: docker://hooozen/node-pandoc:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Cache NPM dependencies | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-npm-cache | |
restore-keys: | | |
${{ runner.OS }}-npm-cache | |
- name: Install Dependencies | |
run: npm install | |
- name: Build tranquility | |
run: npm run build-tranquility | |
- name: Clean config | |
run: rm -f db.json | |
- name: Build academic | |
run: npm run build-academic | |
- name: Set CNAME | |
run: cp source/CNAME public/CNAME | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public |