From e1cdd54ab1f8b8c07347e2e2210f877e659bebff Mon Sep 17 00:00:00 2001 From: Mahmoud Abdelwahab Date: Sun, 9 Jun 2024 20:14:12 +0300 Subject: [PATCH] rollback --- .github/workflows/deploy-api.yml | 25 ++++++++++++------------- apps/api/README.md | 1 + 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy-api.yml b/.github/workflows/deploy-api.yml index ad12e16..0caaf25 100644 --- a/.github/workflows/deploy-api.yml +++ b/.github/workflows/deploy-api.yml @@ -35,19 +35,18 @@ jobs: - run: bun run build --filter=api - - uses: antfu/action-write-config - with: - path: 'secrets.json' - data: - 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 }} + - 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/wrangler-action@v3.6.1 diff --git a/apps/api/README.md b/apps/api/README.md index ec4dd34..18b8423 100644 --- a/apps/api/README.md +++ b/apps/api/README.md @@ -1 +1,2 @@ # Instant Postgres API +