Skip to content

Commit

Permalink
Update prod-env-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedownesdev authored Sep 7, 2023
1 parent e791395 commit c664fb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/prod-env-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
id: set-script-id
run: jq '.scriptId = "${{env.PROD_SCRIPT_ID}}"' .clasp.json > /tmp/.clasp.json && mv /tmp/.clasp.json .clasp.json
env:
TEST_SCRIPT_ID: ${{secrets.PROD_SCRIPT_ID}}
PROD_SCRIPT_ID: ${{secrets.PROD_SCRIPT_ID}}

## Build & push

Expand All @@ -68,7 +68,7 @@ jobs:

- name: Deploy Script
id: clasp-deploy
if: github.ref == 'refs/heads/test'
if: github.ref == 'refs/heads/main'
run: clasp deploy -i "${{ secrets.PROD_DEPLOYMENT_ID }}" -d ${{github.run_number}}
env:
TEST_SCRIPT_ID: ${{ secrets.PROD_SCRIPT_ID }}
PROD_SCRIPT_ID: ${{ secrets.PROD_SCRIPT_ID }}

0 comments on commit c664fb7

Please sign in to comment.