Skip to content

Commit

Permalink
another attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
narimiran committed Oct 16, 2024
1 parent fb9a659 commit 9049004
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 25 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Continuous Delivery
on: push
jobs:
bucket-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch_depth: 0

- name: 🔧 Install java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'

- name: 🔧 Install clojure
uses: DeLaGuardo/[email protected]
with:
cli: 'latest'

- name: 🗝 maven cache
uses: actions/cache@v4
with:
path: |
~/.m2
~/.gitlibs
~/.deps.clj
key: cljdeps-${{ hashFiles('deps.edn') }}
restore-keys: cljdeps-

- name: 🗝 Clerk Cache
uses: actions/cache@v4
with:
path: .cache
key: ${{ runner.os }}-clerk

- name: 🏗 Clerk Build
run: clojure -X:nextjournal/clerk :path-prefix '"public/build/${{ github.sha }}/"' :git/sha '"${{ github.sha }}"'

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'public/build'

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
25 changes: 0 additions & 25 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,3 @@ jobs:
if : ${{ matrix.kind == 'benchmark' }}
run: clojure -M:profile clojure/tests/solutions_benchmark.clj

- name: Clerk Cache
uses: actions/cache@v2
with:
path: .cache
key: ${{ runner.os }}-clerk

- name: Clerk Build
run: clojure -X:nextjournal/clerk

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: 'public/build'

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 9049004

Please sign in to comment.