diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml index 0fcb35baa..d0ded2ccd 100644 --- a/.github/workflows/mkdocs.yml +++ b/.github/workflows/mkdocs.yml @@ -53,11 +53,10 @@ jobs: - name: Deploy Preview to Netlify run: | netlify deploy \ + --alias="${GITHUB_REPOSITORY#*/}-${{ github.event.number }}" \ + --auth=${{ secrets.NETLIFY_AUTH_TOKEN }} \ --dir="site" \ - --alias="${GITHUB_REPOSITORY#*/}-${{ github.event.number }}" - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_PREVIEW_APP_SITE_ID }} + --site=${{ secrets.NETLIFY_PREVIEW_APP_SITE_ID }} - name: Find existing comment uses: peter-evans/find-comment@v3