Skip to content

ci: update build workflow #2

ci: update build workflow

ci: update build workflow #2

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: |
.cpcache
.shadow-cljs
~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/deps.edn') }}
restore-keys: ${{ runner.os }}-m2
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: latest
github-token: ${{ secrets.GITHUB_TOKEN }}
bb: latest
- name: Install npm deps
run: npm install
- name: Build static site
run: bb build-static
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public