Day 2 solution #5
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: | |
- main | |
jobs: | |
test: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: π§ Install java | |
uses: actions/[email protected] | |
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/[email protected] | |
with: | |
path: | | |
~/.m2 | |
~/.gitlibs | |
~/.deps.clj | |
key: ${{ runner.os }}-aoc-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-aoc- | |
- name: π Clerk Build | |
env: | |
AOC_TOKEN: ${{ secrets.AOC_TOKEN }} | |
AOC_USER_AGENT: ${{ secrets.AOC_USER_AGENT }} | |
run: | | |
NODE_PATH=$(yarn global dir)/node_modules clojure -M:nextjournal/clerk | |
- name: π Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: public/build |