diff --git a/.github/workflows/update-portfolio-index.yml b/.github/workflows/update-portfolio-index.yml index 23be9a29d..7e8aa4caa 100644 --- a/.github/workflows/update-portfolio-index.yml +++ b/.github/workflows/update-portfolio-index.yml @@ -34,8 +34,12 @@ jobs: if: ${{ github.ref != 'refs/heads/main' }} run: | npm install -g netlify-cli@17.x.x - python portfolio/portfolio.py index --deploy --alias=${GITHUB_REPOSITORY#*/}-${PR_NUMBER} - + netlify deploy \ + --alias="${GITHUB_REPOSITORY#*/}-${{ github.event.number }}" \ + --auth=${{ secrets.NETLIFY_AUTH_TOKEN }} \ + --dir="portfolio/index" \ + --site=${{ secrets.NETLIFY_PREVIEW_APP_SITE_ID }} + env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_PREVIEW_APP_SITE_ID }}