-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade to latest respo and deps-library; alpha release
- Loading branch information
Showing
14 changed files
with
503 additions
and
313 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
name: Deploy package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- run: curl -O https://download.clojure.org/install/linux-install-1.10.1.507.sh && chmod +x linux-install-1.10.1.507.sh && sudo ./linux-install-1.10.1.507.sh | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Get yarn cache | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v1 | ||
name: Cache node modules of yarn | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Cache Clojars | ||
uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-clojars | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('shadow-cljs.edn') }} | ||
restore-keys: | | ||
${{ runner.os }}-clojars | ||
- name: run tests | ||
run: 'yarn && yarn shadow-cljs compile client' | ||
|
||
- run: echo Working on ${{ github.ref }} | ||
|
||
- name: deploy to clojars | ||
run: env CLOJARS_USERNAME=jiyinyiyong CLOJARS_PASSWORD=${{ secrets.CLOJARS_PASSWORD }} clojure -A:release |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
name: Upload Assets | ||
|
||
on: | ||
pull_request: {} | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
upload-assets: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: docker://timbru31/java-node:latest | ||
|
||
- name: Get yarn cache | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v1 | ||
name: Cache node modules of yarn | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Cache Clojars | ||
uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-clojars | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('shadow-cljs.edn') }} | ||
restore-keys: | | ||
${{ runner.os }}-clojars | ||
- run: yarn && yarn build | ||
name: Build web assets | ||
|
||
- name: Deploy to server | ||
id: deploy | ||
uses: Pendect/action-rsyncer@v1.1.0 | ||
env: | ||
DEPLOY_KEY: ${{secrets.rsync_private_key}} | ||
with: | ||
flags: '-avzr --progress' | ||
options: '' | ||
ssh_options: '' | ||
src: 'dist/*' | ||
dest: 'rsync-user@tiye.me:/web-assets/repo/${{ github.repository }}' | ||
|
||
- name: Display status from deploy | ||
run: echo "${{ steps.deploy.outputs.status }}" |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
:paths ["src"] | ||
:aliases { | ||
:release { | ||
:extra-deps { | ||
appliedscience/deps-library {:mvn/version "0.3.4"} | ||
} | ||
:main-opts ["-m" "deps-library.release"] | ||
} | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{:version "0.3.0-a1" | ||
:group-id "respo" | ||
:artifact-id "inflow-popup" | ||
:skip-tag true | ||
:description "Local popup component for Respo" | ||
:scm-url "https://github.com/Respo/inflow-popup"} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,39 @@ | ||
|
||
{:source-paths ["src" "cli"] | ||
:cache-blockers #{cumulo-util.build} | ||
:dependencies [[mvc-works/hsl "0.1.2"] | ||
[mvc-works/shell-page "0.1.10"] | ||
[respo "0.11.4-a1"] | ||
[respo/ui "0.3.13"] | ||
[respo/value "0.2.5"] | ||
[respo/reel "0.3.5"] | ||
[cumulo/util "0.1.10"] | ||
[medley "1.2.0"] | ||
[cumulo/util "0.1.10"] | ||
[org.clojure/core.incubator "0.1.4"]] | ||
:repositories {"central" {:url "https://maven.aliyun.com/nexus/content/groups/public/"} | ||
"clojars" {:url "https://mirrors.ustc.edu.cn/clojars/"}} | ||
:open-file-command ["subl" ["%s:%s:%s" :file :line :column]] | ||
:dev-http {7000 "target/"} | ||
:builds {:client {:target :browser | ||
:output-dir "target/" | ||
:asset-path "./" | ||
:modules {:client {:init-fn inflow-popup.main/main!}} | ||
:devtools {:after-load inflow-popup.main/reload! | ||
:loader-mode :script} | ||
:compiler-options {:infer-externs :auto} | ||
:release {:output-dir "dist/" | ||
:module-hash-names 8 | ||
:build-options {:manifest-name "assets.edn"}}} | ||
:page {:target :node-script | ||
:output-to "target/page.js" | ||
:main inflow-popup.page/main! | ||
:devtools {:after-load inflow-popup.page/main!}}}} | ||
{ | ||
:source-paths ["src" "cli"] | ||
:cache-blockers #{cumulo-util.build} | ||
:dependencies [ | ||
[mvc-works/hsl "0.1.2"] | ||
[mvc-works/shell-page "0.1.10"] | ||
[respo "0.12.1"] | ||
[respo/ui "0.3.14"] | ||
[respo/value "0.3.0"] | ||
[respo/reel "0.4.1-a1"] | ||
[cumulo/util "0.1.11"] | ||
[medley "1.3.0"] | ||
[cumulo/util "0.1.11"] | ||
[org.clojure/core.incubator "0.1.4"] | ||
] | ||
:open-file-command [ | ||
"subl" | ||
["%s:%s:%s" :file :line :column] | ||
] | ||
:dev-http {7000 "target/"} | ||
:builds { | ||
:client { | ||
:target :browser, :output-dir "target/", :asset-path "./" | ||
:modules { | ||
:client {:init-fn inflow-popup.main/main!} | ||
} | ||
:devtools {:after-load inflow-popup.main/reload!, :loader-mode :script} | ||
:compiler-options {:infer-externs :auto} | ||
:release { | ||
:output-dir "dist/", :module-hash-names 8 | ||
:build-options {:manifest-name "assets.edn"} | ||
} | ||
} | ||
:page { | ||
:target :node-script, :output-to "target/page.js", :main inflow-popup.page/main! | ||
:devtools {:after-load inflow-popup.page/main!} | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.