Skip to content

Commit

Permalink
Use different workflow for deploying to Netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
arnellebalane committed Oct 9, 2023
1 parent f1f5f07 commit 0013dd7
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/deploy-to-netlify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,9 @@ jobs:
VITE_PUBLIC_IS_WEB_BUILD: ${{ secrets.VITE_PUBLIC_IS_WEB_BUILD }}
VITE_PUBLIC_SENTRY_DSN: ${{ secrets.VITE_PUBLIC_SENTRY_DSN }}
VITE_PUBLIC_SENTRY_ENVIRONMENT: ${{ secrets.VITE_PUBLIC_SENTRY_ENVIRONMENT }}
- uses: nwtgck/[email protected]
with:
publish-dir: './dist'
production-branch: main
production-deploy: true
functions-dir: './functions'
netlify-config-path: './netlify.toml'
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: ${{ github.event.head_commit.message }}
- uses: netlify/actions/build@master
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_CMD: npm run build
NETLIFY_DIR: dist

0 comments on commit 0013dd7

Please sign in to comment.