From 256a66febe2f2a97846c6d244b9c896d8c0e9a5c Mon Sep 17 00:00:00 2001 From: Dirty REdOG Date: Sat, 4 Jul 2026 17:43:04 -0500 Subject: [PATCH] ci: create cloudflare deployment pipeline --- .forgejo/workflows/deploy.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..e36c4ce --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,29 @@ +name: Deploy to Cloudflare Pages + +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install & Build + run: | + npm install + make build + + - name: Push to Cloudflare Edge + run: npx wrangler pages deploy dist/ --project-name=ledailysquirrel + env: + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} + CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}