Skip to content

Commit

Permalink
Update test-and-deploy.yml
Browse files Browse the repository at this point in the history
using env variables instead
  • Loading branch information
dayhaysoos committed Aug 8, 2023
1 parent a43e960 commit e44cae6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ jobs:

- name: Install Netlify CLI
run: npm install -g netlify-cli

- name: Deploy to Netlify
run: |
netlify deploy --dir ./site/build --prod \
--auth ${{ secrets.NETLIFY_AUTH_TOKEN }} \
--site ${{ secrets.NETLIFY_SITE_ID }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
run: netlify deploy --dir ./site/build --prod

0 comments on commit e44cae6

Please sign in to comment.