diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 073ea45..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Deploy -on: - push: - branches: - - main - -jobs: - deploy: - runs-on: ubuntu-latest - name: Deploy - steps: - - uses: actions/checkout@v4 - - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.1.27 - - name: Install dependencies - run: bun install - - name: Install libsql server - run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/tursodatabase/libsql/releases/download/libsql-server-v0.24.14/libsql-server-installer.sh | sh - - name: Test - run: bun run test --dbCommand \"~/.cargo/bin/sqld --http-listen-addr=127.0.0.1:3001\" - # TODO: uncomment this when https://github.com/cloudflare/workers-sdk/issues/5082 is fixed - # - name: Verify env - # run: bun env:verify - # env: - # CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} - # IS_CI: true - - name: Run DB migration - run: bun run db:migrate - env: - TURSO_URL: ${{ vars.TURSO_URL }} - TURSO_AUTH_TOKEN: ${{ secrets.TURSO_AUTH_TOKEN }} - - name: Deploy - uses: cloudflare/wrangler-action@v3 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}