From 105b1516edf7ce3702886072d72c2cd655388420 Mon Sep 17 00:00:00 2001 From: rizaldy Date: Sat, 2 Mar 2024 02:55:03 +0700 Subject: [PATCH] ci: setup --- .gitea/workflows/deploy.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..cf7e780 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,20 @@ +name: deploy +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: "20.x" + cache: "npm" + - run: npm ci + - run: npx quartz build + - run: npx wrangler pages deploy public --project-name=$CF_PROJECT_NAME --branch=$GITHUB_REF_NAME + env: + CLOUDFLARE_API_TOKEN: ${{ vars.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} + CF_PROJECT_NAME: ${{ vars.CF_PROJECT_NAME }}