diff --git a/.github/workflows/pull_request_deploy_preview.yml b/.github/workflows/pull_request_deploy_preview.yml index 1aa2def..634a3de 100644 --- a/.github/workflows/pull_request_deploy_preview.yml +++ b/.github/workflows/pull_request_deploy_preview.yml @@ -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