a few more About edits #6
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
# Taken gratefully from elken.dev | |
name: Deploy to https://blackmoonkite.cc | |
on: | |
push: | |
paths: | |
- resources/** | |
- content/** | |
- src/** | |
branches: | |
"main" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build-and-deploy: | |
environment: | |
name: "Build Powerpack" | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 🔧 Install java | |
uses: actions/[email protected] | |
with: | |
distribution: "temurin" | |
java-version: "11.0.20+8" | |
- name: 🔧 Install clojure & bb | |
uses: DeLaGuardo/setup-clojure@master | |
with: | |
cli: "1.11.1.1403" | |
bb: "latest" | |
- name: 🏗 Install deps | |
run: | | |
yarn | |
- name: 📦 Cache deps | |
uses: actions/[email protected] | |
with: | |
path: | | |
~/.m2 | |
~/.gitlibs | |
~/.deps.clj | |
node_modules | |
key: ${{ runner.os }}-dev-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-dev- | |
- name: Clear output folder to prevent errors | |
run: rm -r ./target/powerpack | |
- name: 🏗 Build Site | |
run: clojure -X:build | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './target/powerpack' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |