Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
awb99 committed Apr 13, 2024
1 parent 25f603c commit a65fde6
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
CLOJARS_PASSWORD: ${{ secrets.ReleasePassword }}
CODECOV_TOKEN: ${{ secrets.CodecovToken }}
run: |
cd reval-ui
git config --global user.email "[email protected]"
git config --global user.name "CI/CD"
clojure -T:build jar
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ jobs:
- name: build gh-pages
if: success()
run: |
cd demo
clojure -X:webly:npm-install
clojure -X:webly:release-adv
clojure -X:webly:static
Expand All @@ -59,7 +58,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "demo/target/static"
path: "target/static"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
12 changes: 12 additions & 0 deletions http-server-prefix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env /home/florian/babashka/bb

(require '[babashka.deps :as deps])
(deps/add-deps
'{:deps {org.babashka/http-server {:mvn/version "0.1.11"}}})

(require '[babashka.http-server :as http-server])

(println "open http://localhost:8080/static")

(http-server/exec {:port 8080
:dir "./target"})
10 changes: 10 additions & 0 deletions http-server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env /home/florian/babashka/bb

(require '[babashka.deps :as deps])
(deps/add-deps
'{:deps {org.babashka/http-server {:mvn/version "0.1.11"}}})

(require '[babashka.http-server :as http-server])

(http-server/exec {:port 8080
:dir "./target/static"})
10 changes: 10 additions & 0 deletions static-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

rm target -r
rm .shadow-cljs -r

clojure -X:webly:npm-install
clojure -X:webly:release-adv
clojure -X:webly:static
clojure -X:nbeval
cp target/webly/public/rdocument target/static/r -r

0 comments on commit a65fde6

Please sign in to comment.