Skip to content

Commit

Permalink
use netlify cli
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffanychu90 authored Mar 21, 2024
1 parent 5462df8 commit cc8adca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/update-portfolio-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ jobs:
if: ${{ github.ref != 'refs/heads/main' }}
run: |
npm install -g [email protected]
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 }}
Expand Down

0 comments on commit cc8adca

Please sign in to comment.