Day 03. #18
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: Deploy | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
pages: write | |
jobs: | |
test: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: π§ Install java | |
uses: actions/setup-java@v3.12.0 | |
with: | |
distribution: "temurin" | |
java-version: "11.0.20+8" | |
- name: π§ Install clojure | |
uses: DeLaGuardo/setup-clojure@master | |
with: | |
cli: "1.11.1.1403" | |
- name: π Install deps | |
run: yarn global add tailwindcss @tailwindcss/typography | |
- name: Cache deps | |
uses: actions/cache@v3.3.1 | |
with: | |
path: | | |
~/.m2 | |
~/.gitlibs | |
~/.deps.clj | |
key: ${{ runner.os }}-aoc-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-aoc- | |
- name: π Clerk Build | |
run: | | |
NODE_PATH=$(yarn global dir)/node_modules clojure -X:nextjournal/clerk | |
- name: π Deploy | |
uses: JamesIves/github-pages-deploy-action@v4.4.3 | |
with: | |
branch: gh-pages | |
folder: public/build |