Skip to content

Commit

Permalink
修改 ci
Browse files Browse the repository at this point in the history
  • Loading branch information
niuniuland committed Dec 10, 2023
1 parent bede5d1 commit ca74d24
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ jobs:
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1

- name: Create .env.production.local file
run: |
echo "VITE_APP_API=${{ secrets.VITE_APP_API }}" > .env.production.local
echo "VITE_SUPABASE_URL=${{ secrets.VITE_SUPABASE_URL }}" >> .env.production.local
echo "VITE_SUPABASE_ANON_KEY=${{ secrets.VITE_SUPABASE_ANON_KEY }}" >> .env.production.local
# 在这里添加任何其他需要的环境变量
- run: npm run build
env:
VITE_APP_API: 'https://api.chromepower.xyz/api'
VITE_SUPABASE_URL: ${{ secrets.VITE_SUPABASE_URL }}
VITE_SUPABASE_ANON_KEY: ${{ secrets.VITE_SUPABASE_ANON_KEY }} # This should be set in the repository's secrets settings


- name: Compile artifacts ${{ inputs.dry-run && '' || 'and upload them to github release' }}
uses: nick-fields/retry@v2
Expand Down

0 comments on commit ca74d24

Please sign in to comment.