Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
m-abdelwahab committed Jun 1, 2024
1 parent 89c2369 commit 603f38d
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,26 @@ jobs:

- run: bun run build --filter=api

- run: |
echo "{
\"DATABASE_URL\": \"${{ secrets.DATABASE_URL }}\",
\"COOKIE_SECRET\": \"${{ secrets.COOKIE_SECRET }}\",
\"NEON_API_KEY\": \"${{ secrets.NEON_API_KEY }}\",
\"APP_URL\": \"${{ secrets.APP_URL }}\",
\"CLOUDFLARE_TURNSTILE_SECRET_KEY\": \"${{ secrets.CLOUDFLARE_TURNSTILE_SECRET_KEY }}\",
\"UPSTASH_REDIS_REST_URL\": \"${{ secrets.UPSTASH_REDIS_REST_URL }}\",
\"UPSTASH_REDIS_REST_TOKEN\": \"${{ secrets.UPSTASH_REDIS_REST_TOKEN }}\",
\"CLOUDFLARE_API_TOKEN\": \"${{ secrets.CLOUDFLARE_API_TOKEN }}\",
\"CLOUDFLARE_ACCOUNT_ID\": \"${{ secrets.CLOUDFLARE_ACCOUNT_ID }}\"
}" > secrets.json
- name: Upload secrets
uses: cloudflare/[email protected]
with:
apiToken: $CLOUDFLARE_API_TOKEN
preCommands: echo ${{ (toJson(secrets)) }} > secrets.json
command: pages secret bulk secrets.json
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages secret bulk secrets.json --project-name=instant-postgres-api
wranglerVersion: 3.58.0

- name: Deploy
uses: AdrianGonz97/refined-cf-pages-action@v1
Expand Down

0 comments on commit 603f38d

Please sign in to comment.