Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
Add environmental variables.
  • Loading branch information
mariatorrentedev authored Apr 18, 2024
1 parent 65d9a67 commit 4333032
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 21
node-version: 14 # Adjust the Node.js version if needed
cache: 'npm'
- name: Install dependencies
run: npm ci
Expand All @@ -42,6 +42,11 @@ 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
Expand Down

0 comments on commit 4333032

Please sign in to comment.