Skip to content

Commit 81fe1b5

Browse files
committed
fix: fix invalid workflow config
1 parent 01b4158 commit 81fe1b5

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ on:
99
jobs:
1010
deploy:
1111
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
target: [ethglobal] # add more here for other accounts; implies CLASPRC_{NAME} exists w/ oauth
1512
env:
1613
SCRIPT_ID: "1eKtnybTCz-GKohMdtdEKVDBUzFK3suniSAT0UDEKsM_Fm5dR9aRMs3WN"
1714
steps:
@@ -21,27 +18,27 @@ jobs:
2118
- name: Set up Node.js
2219
uses: actions/setup-node@v3
2320
with:
24-
node-version: '16'
21+
node-version: '22.4.1'
2522

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
2827
2928
- name: Set up .clasp.json file
3029
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
3231
3332
- name: Set up OAuth credentials
34-
env:
35-
CLASPRC_CONTENT: ${{ secrets.CLASPRC_${{ matrix.target | upper }} }}
3633
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
3836
3937
- name: Build the latest
4038
run: npm run build
4139

42-
- name: Deploy ${{ matrix.target }}
40+
- name: Deploy ethglobal
4341
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."

0 commit comments

Comments
 (0)