Skip to content

Commit

Permalink
fix: add github token to cache action
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Dec 25, 2023
1 parent 20576f4 commit 6600c58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
with:
path: |
node_modules/.astro
target
key: ${{ runner.os }}-images

- name: Pull Vercel Environment Information
Expand All @@ -52,7 +53,9 @@ jobs:
- name: Deploy Project Artifacts to Vercel
run: pnpx vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }}

- name: clear
- name: Clear cache
env:
GH_TOKEN: ${{ github.token }}
run: |
gh extension install actions/gh-actions-cache
if ${{ steps.cache-restore.outputs.cache-hit == 'true' }}; then
Expand All @@ -66,4 +69,5 @@ jobs:
with:
path: |
node_modules/.astro
target
key: ${{ steps.cache-images-restore.outputs.cache-primary-key }}

0 comments on commit 6600c58

Please sign in to comment.