From 36e0942f461c41678b23ccea8bb8fe967b4fdbe1 Mon Sep 17 00:00:00 2001 From: sneak Date: Tue, 10 Feb 2026 03:25:13 -0800 Subject: [PATCH] add workflow for ci deploy --- .gitea/workflows/deploy.yml | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..3967d2e --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,52 @@ +name: Build and Deploy to Cloudflare Pages + +on: + push: + branches: + - feat/initial-site + - main + +jobs: + build: + runs-on: ubuntu-latest + container: + image: klakegg/hugo:ext-alpine + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Build site + run: hugo --minify + + - name: Archive site + run: tar -czf site.tar.gz public + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: site + path: site.tar.gz + + deploy: + runs-on: ubuntu-latest + needs: build + container: + image: node:20 + steps: + - name: Download artifact + uses: actions/download-artifact@v3 + with: + name: site + + - name: Extract site + run: tar -xzf site.tar.gz + + - name: Install Wrangler + run: npm install -g wrangler + + - name: Deploy to Cloudflare Pages + run: wrangler pages deploy public --project-name=lora-vegas --branch=${{ github.ref_name }} + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}