diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 51e3e05..74de096 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,8 +25,12 @@ jobs: deploy: environment: name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest + env: + VITE_APP_SPOTIFY_CLIENT_ID: ${{ secrets.VITE_APP_SPOTIFY_CLIENT_ID }} + VITE_APP_SPOTIFY_CLIENT_SECRET: ${{ secrets.VITE_APP_SPOTIFY_CLIENT_SECRET }} + VITE_APP_SPOTIFY_REFRESH_TOKEN: ${{ secrets.VITE_APP_SPOTIFY_REFRESH_TOKEN }} steps: - name: Checkout uses: actions/checkout@v4 @@ -42,11 +46,6 @@ jobs: npm run build # Copy resume.pdf to dist folder cp resume.pdf dist/ - - name: Setup Environment Variables - run: | - echo "VITE_APP_SPOTIFY_CLIENT_ID=${{ secrets.VITE_APP_SPOTIFY_CLIENT_ID }}" >> $GITHUB_ENV - echo "VITE_APP_SPOTIFY_CLIENT_SECRET=${{ secrets.VITE_APP_SPOTIFY_CLIENT_SECRET }}" >> $GITHUB_ENV - echo "VITE_APP_SPOTIFY_REFRESH_TOKEN=${{ secrets.VITE_APP_SPOTIFY_REFRESH_TOKEN }}" >> $GITHUB_ENV - name: Setup Pages uses: actions/configure-pages@v4 - name: Upload artifact