ci: use new preview deploy action
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
@@ -48,18 +48,17 @@ jobs:
|
||||
with:
|
||||
path: www/dist
|
||||
- name: Deploy to Netlify
|
||||
uses: jsmrcaga/action-netlify-deploy@v2.0.0
|
||||
uses: nwtgck/actions-netlify@v3.0
|
||||
with:
|
||||
publish-dir: 'www/dist'
|
||||
production-branch: develop
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
deploy-message: ${{ github.event.pull_request.title }}
|
||||
enable-pull-request-comment: true
|
||||
enable-commit-comment: true
|
||||
overwrites-pull-request-comment: true
|
||||
alias: deploy-preview-${{ github.event.number }}
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN_SECRET }}
|
||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||
install_command: "echo Skipping installing the dependencies"
|
||||
build_command: "echo Skipping building the web files"
|
||||
build_directory: www/dist
|
||||
deploy_alias: ${{ env.BRANCH_NAME }}
|
||||
- name: Status check
|
||||
uses: Sibz/github-status-action@v1.1.1
|
||||
with:
|
||||
authToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
context: Netlify preview
|
||||
state: success
|
||||
target_url: ${{ env.NETLIFY_PREVIEW_URL }}
|
||||
timeout-minutes: 1
|
||||
|
||||
Reference in New Issue
Block a user