Skip to content

Commit

Permalink
fix: use clasp.json instead of clasprc.json and newer version
Browse files Browse the repository at this point in the history
  • Loading branch information
luandro committed Oct 19, 2024
1 parent fcc07d4 commit 9685939
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ jobs:
steps:
- name: Install clasp
id: install-clasp
run: sudo npm install @google/[email protected].1 -g
run: sudo npm install @google/[email protected].2 -g

- name: Write CLASPRC_JSON secret to .clasprc.json file
- name: Write CLASPRC_JSON secret to .clasp.json file
id: write-clasprc
run: echo "$CLASPRC_JSON_SECRET" >> ~/.clasprc.json
run: echo "$CLASPRC_JSON_SECRET" >> ~/.clasp.json
env:
CLASPRC_JSON_SECRET: ${{ secrets.CLASPRC_JSON }}

- name: Check clasp login status
id: clasp_login
run: clasp login --status

- name: Save current .clasprc.json contents to CLASPRC_JSON_FILE environment variable
- name: Save current .clasp.json contents to CLASPRC_JSON_FILE environment variable
id: save-clasprc
run: |
echo ::add-mask::$(tr -d '\n\r' < ~/.clasprc.json)
echo "CLASPRC_JSON_FILE=$(tr -d '\n\r' < ~/.clasprc.json)" >> $GITHUB_ENV
echo ::add-mask::$(tr -d '\n\r' < ~/.clasp.json)
echo "CLASPRC_JSON_FILE=$(tr -d '\n\r' < ~/.clasp.json)" >> $GITHUB_ENV
- name: Save CLASPRC_JSON_FILE environment variable to CLASPRC_JSON repo secret
id: set-clasprc-secret
Expand Down

0 comments on commit 9685939

Please sign in to comment.