remove print #8
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 ] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
strategy: | |
matrix: | |
os-version: [ubuntu-latest] | |
node-version: [16.x] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repo | |
uses: actions/checkout@v3.0.2 | |
- name: Prepare java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Install clojure tools | |
uses: DeLaGuardo/setup-clojure@10.1 | |
with: | |
# Install just one or all simultaneously | |
# The value must indicate a particular version of the tool, or use 'latest' | |
# to always provision the latest version | |
boot: 2.8.3 # Boot.clj | |
bb: latest | |
cli: 1.11.1.1113 | |
- name: Cache clojure dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
~/.gitlibs | |
~/.deps.clj | |
# List all files containing dependencies: | |
key: cljdeps-${{ hashFiles('deps.edn') }} | |
# key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }} | |
# key: cljdeps-${{ hashFiles('project.clj') }} | |
# key: cljdeps-${{ hashFiles('build.boot') }} | |
restore-keys: cljdeps- | |
- run: bb build-posts | |
- name: Build ${{ matrix.node-version }} | |
uses: actions/setup-node@v3.2.0 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: | | |
npm install | |
npm run release | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUBTOKEN }} | |
publish_dir: ./public |