File tree Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
deploy :
11
11
runs-on : ubuntu-latest
12
- strategy :
13
- matrix :
14
- target : [ethglobal] # add more here for other accounts; implies CLASPRC_{NAME} exists w/ oauth
15
12
env :
16
13
SCRIPT_ID : " 1eKtnybTCz-GKohMdtdEKVDBUzFK3suniSAT0UDEKsM_Fm5dR9aRMs3WN"
17
14
steps :
@@ -21,27 +18,27 @@ jobs:
21
18
- name : Set up Node.js
22
19
uses : actions/setup-node@v3
23
20
with :
24
- node-version : ' 16 '
21
+ node-version : ' 22.4.1 '
25
22
26
- - name : Install clasp
27
- run : npm install -g @google/clasp
23
+ - name : Install dependencies
24
+ run : |
25
+ npm install -g @google/clasp
26
+ npm install
28
27
29
28
- name : Set up .clasp.json file
30
29
run : |
31
- echo '{"scriptId":"${SCRIPT_ID} ","rootDir":"dist"}' > ${{ github.workspace }}/allhands /.clasp.json
30
+ echo '{"scriptId":"${{ env. SCRIPT_ID }} ","rootDir":"dist"}' > $GITHUB_WORKSPACE /.clasp.json
32
31
33
32
- name : Set up OAuth credentials
34
- env :
35
- CLASPRC_CONTENT : ${{ secrets.CLASPRC_${{ matrix.target | upper }} }}
36
33
run : |
37
- echo "$CLASPRC_CONTENT" | base64 -d > ~/.clasprc.json
34
+ echo "${{ secrets.CLASPRC_ETHGLOBAL }}" | base64 -d > ~/.clasprc.json
35
+ echo "${{ secrets.CLASPRC_ETHGLOBAL }}" | base64 -d > $GITHUB_WORKSPACE/.clasprc.json
38
36
39
37
- name : Build the latest
40
38
run : npm run build
41
39
42
- - name : Deploy ${{ matrix.target }}
40
+ - name : Deploy ethglobal
43
41
run : |
44
- echo "Deploying ${{ matrix.target }}..."
45
- cd ${{ github.workspace }}/allhands
46
- clasp push && echo "Deploying ${{ matrix.target }}... done."
47
-
42
+ echo "Deploying ethglobal..."
43
+ cd $GITHUB_WORKSPACE
44
+ clasp push -f && echo "Deploying ethglobal... done."
You can’t perform that action at this time.
0 commit comments