From 6f6cd270eb4e4447b8ec029201667dd2e456cb70 Mon Sep 17 00:00:00 2001 From: uku Date: Mon, 21 Oct 2024 17:19:06 +0200 Subject: [PATCH] feat: add deploy workflow --- .forgejo/workflows/deploy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .forgejo/workflows/deploy.yml diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..a2cd88b --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: deploy to cloudflare pages + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + + - name: Build + run: | + bun install --frozen-lockfile + bun run build + + - name: Deploy + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: pages deploy