diff --git a/.github/workflows/trigger-netlify-build.yml b/.github/workflows/trigger-netlify-build.yml index fc279b7522..5622b8336a 100644 --- a/.github/workflows/trigger-netlify-build.yml +++ b/.github/workflows/trigger-netlify-build.yml @@ -7,15 +7,14 @@ on: jobs: deploy-preview: runs-on: ubuntu-latest - steps: - if: contains(github.event.comment.body, 'netlify build') - - name: deploy to preview mode - uses: thundermiracle/netlify-deploy@v3 - with: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN}} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID}} - deploy-dir: "./public" - extra-cache-path: | - .cache - public + if: contains(github.event.comment.body, 'netlify build') + - name: deploy to preview mode + uses: thundermiracle/netlify-deploy@v3 + with: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN}} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID}} + deploy-dir: "./public" + extra-cache-path: | + .cache + public