Skip to content

Commit 4a6eb67

Browse files
committed
workflow updates
1 parent f02053f commit 4a6eb67

File tree

4 files changed

+213
-208
lines changed

4 files changed

+213
-208
lines changed

.github/workflows/upload.yaml

Lines changed: 16 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,49 +10,33 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414

15-
- name: Get yarn cache
16-
id: yarn-cache
17-
run: echo "::set-output name=dir::$(yarn cache dir)"
18-
19-
- uses: actions/cache@v2
20-
name: Cache node modules of yarn
15+
- uses: actions/setup-node@v3
2116
with:
22-
path: ${{ steps.yarn-cache.outputs.dir }}
23-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
24-
restore-keys: |
25-
${{ runner.os }}-yarn-
26-
27-
- name: ACTIONS_ALLOW_UNSECURE_COMMANDS
28-
id: ACTIONS_ALLOW_UNSECURE_COMMANDS
29-
run: echo 'ACTIONS_ALLOW_UNSECURE_COMMANDS=true' >> $GITHUB_ENV
17+
node-version: 18
18+
cache: 'yarn'
3019

31-
- name: add cr
32-
run: |
33-
mkdir -p $GITHUB_WORKSPACE/bin
34-
wget -O $GITHUB_WORKSPACE/bin/cr https://github.com/calcit-lang/calcit/releases/download/0.6.4/cr
35-
chmod +x $GITHUB_WORKSPACE/bin/cr
36-
echo "::add-path::$GITHUB_WORKSPACE/bin"
20+
- uses: supplypike/setup-bin@v3
21+
with:
22+
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.6.26/cr'
23+
name: 'cr'
24+
version: '0.6.26'
3725

38-
- name: "prepare modules"
39-
run: >
40-
mkdir -p ~/.config/calcit/modules/ && cd ~/.config/calcit/modules/
41-
&& git clone https://github.com/calcit-lang/lilac.git
42-
&& git clone https://github.com/calcit-lang/memof.git
43-
&& git clone https://github.com/Respo/respo.calcit.git
44-
&& git clone https://github.com/Respo/reel.calcit.git
45-
&& git clone https://github.com/Respo/respo-markdown.calcit.git
46-
&& git clone https://github.com/Respo/respo-ui.calcit.git
26+
- uses: supplypike/setup-bin@v3
27+
with:
28+
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.6.26/caps'
29+
name: 'caps'
30+
version: '0.6.26'
4731

4832
- name: "compiles to js"
4933
run: >
50-
cr --emit-js --once
34+
caps --ci && cr --emit-js --once
5135
&& yarn && yarn vite build --base=./
5236
5337
- name: Deploy to server
5438
id: deploy
55-
uses: Pendect/action-rsyncer@v1.1.0
39+
uses: Pendect/action-rsyncer@v2.0.0
5640
env:
5741
DEPLOY_KEY: ${{secrets.rsync_private_key}}
5842
with:

package.cirru

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
{}
3+
:dependencies $ {}
4+
|calcit-lang/lilac |main
5+
|calcit-lang/memof |main
6+
|Respo/respo.calcit |main
7+
|Respo/reel.calcit |main
8+
|Respo/respo-markdown.calcit |main
9+
|Respo/respo-ui.calcit |main

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"author": "jiyinyiyong",
1212
"license": "MIT",
1313
"devDependencies": {
14-
"bottom-tip": "^0.1.3",
15-
"vite": "^3.0.9"
14+
"bottom-tip": "^0.1.5",
15+
"vite": "^4.2.1"
1616
},
1717
"dependencies": {
18-
"@calcit/procs": "^0.6.4",
18+
"@calcit/procs": "^0.6.26",
1919
"feather-icons": "^4.29.0",
2020
"shortid": "^2.2.16"
2121
}

0 commit comments

Comments
 (0)