diff --git a/.github/workflows/update-portfolio-index.yml b/.github/workflows/update-portfolio-index.yml index 2cdf625e2..ad986cee4 100644 --- a/.github/workflows/update-portfolio-index.yml +++ b/.github/workflows/update-portfolio-index.yml @@ -34,13 +34,10 @@ jobs: if: ${{ github.ref != 'refs/heads/main' }} run: | npm install -g netlify-cli@17.x.x - jb build -W -n --keep-going ./portfolio - netlify deploy \ - --alias="${GITHUB_REPOSITORY#*/}-${{ github.event.number }}" \ - --auth=${{ secrets.NETLIFY_AUTH_TOKEN }} \ - --dir="portfolio/index" \ - --site=${{ secrets.NETLIFY_PREVIEW_APP_SITE_ID }} - + python portfolio/portfolio.py index --deploy \ + --alias=${GITHUB_REPOSITORY#*/}-${PR_NUMBER} \ + --site=${{ secrets.NETLIFY_PREVIEW_APP_SITE_ID }} \ + --auth=${{ secrets.NETLIFY_AUTH_TOKEN }} \ env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_PREVIEW_APP_SITE_ID }}