Skip to content

Commit

Permalink
Link to squint vite build instead of CDN+importmap demo
Browse files Browse the repository at this point in the history
  • Loading branch information
zampino committed Feb 8, 2024
1 parent 34042c3 commit e8c34ae
Showing 1 changed file with 10 additions and 41 deletions.
51 changes: 10 additions & 41 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,47 +29,6 @@ jobs:
yarn squint compile
node dist/nextjournal/clojure_mode_tests.mjs
squint:
name: Static App / Squint Build
runs-on: ubuntu-latest
steps:
- name: πŸ›Ž Checkout
uses: actions/checkout@v2

- name: πŸ” Google Auth
uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.GCLOUD_SERVICE_KEY }}

- name: πŸ”§ Setup Google Cloud SDK
uses: google-github-actions/[email protected]

- name: πŸ”§ Install java
uses: actions/setup-java@v1
with:
java-version: '11.0.7'

- name: πŸ”§ Install clojure
uses: DeLaGuardo/setup-clojure@master
with:
bb: 'latest'

- name: πŸ”Ž Build Squint static CDN Demo
run: bb squint:demo:build

- name: πŸ“  Copy static build to bucket under SHA
run: gsutil cp -r public gs://nextjournal-snapshots/clojure-mode/squint-build/${{ github.sha }}

- name: βœ… Add link to Clojure Mode Squint Demo
uses: Sibz/github-status-action@v1
with:
authToken: ${{secrets.GITHUB_TOKEN}}
context: 'CI / Static App / Squint'
description: 'Ready'
state: 'success'
sha: ${{github.event.pull_request.head.sha || github.sha}}
target_url: https://snapshots.nextjournal.com/clojure-mode/squint-build/${{ github.sha }}/squint-cdn-demo

snapshot:
name: Static App / Build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -127,6 +86,16 @@ jobs:
sha: ${{github.event.pull_request.head.sha || github.sha}}
target_url: https://snapshots.nextjournal.com/clojure-mode/build/${{ github.sha }}

- name: βœ… Add link to Clojure Mode Demo
uses: Sibz/github-status-action@v1
with:
authToken: ${{secrets.GITHUB_TOKEN}}
context: 'CI / Static App / Squint Build'
description: 'Ready'
state: 'success'
sha: ${{github.event.pull_request.head.sha || github.sha}}
target_url: https://snapshots.nextjournal.com/clojure-mode/build/${{ github.sha }}/squint/dist/

- name: βœ… Add link to LiveDoc Demo
uses: Sibz/github-status-action@v1
with:
Expand Down

0 comments on commit e8c34ae

Please sign in to comment.