Skip to content

Commit 63173c4

Browse files
authored
Update netlify.yml
1 parent 79262b8 commit 63173c4

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

.github/workflows/netlify.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,13 @@ jobs:
3030
- run: npm run test
3131

3232
- run: npm run build:netlify
33-
33+
3434
- name: Deploy to Netlify
35-
uses: nwtgck/actions-netlify@v3.0
36-
with:
37-
publish-dir: "./dist/app/browser"
38-
production-deploy: ${{ github.ref_name == 'master' }}
39-
production-branch: master
40-
github-token: ${{ secrets.GITHUB_TOKEN }}
41-
deploy-message: "Deploy from GitHub Actions"
42-
enable-pull-request-comment: false
43-
enable-commit-comment: true
44-
overwrites-pull-request-comment: true
45-
env:
46-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
47-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
48-
timeout-minutes: 1
35+
id: netlify_deploy
36+
run: |
37+
npx netlify deploy \
38+
--dir dist \
39+
--site ${{ secrets.NETLIFY_SITE_ID }} \
40+
--auth ${{ secrets.NETLIFY_AUTH_TOKEN }} \
41+
--message "Production deploy" \
42+
--prod-if-unlocked

0 commit comments

Comments
 (0)