From 01092c142c533b80ea55fc310b49c90abd2e6119 Mon Sep 17 00:00:00 2001 From: Syahrial Agni Prasetya Date: Thu, 15 Feb 2024 09:52:44 +0000 Subject: [PATCH] Add CI --- .gitea/workflows/deploy.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..1a91d4c --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,24 @@ +name: Cloudflare Pages + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.122.0' + + - name: Build + run: hugo --minify + + - name: Deploy to Cloudflare Pages + run: npx --yes wrangler pages deploy --project-name lemniskett-moe ./public --branch main \ No newline at end of file