From 18e865e391b5c23cd2f9da91a74f20c3c0346da9 Mon Sep 17 00:00:00 2001 From: Zhu Zhanyan Date: Fri, 12 Jul 2024 10:53:35 +0800 Subject: [PATCH] ci: only publish to b2 if pushed via tag --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8a49d7e..46d2d2b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -53,8 +53,8 @@ jobs: run: npm ci --include=dev - name: Build site run: npx next build - # TODO(mrzzy): gate deploy with tag - name: Upload site to b2 + if: ${{ github.ref_type == "tag" }} env: B2_APPLICATION_KEY_ID: "${{ secrets.B2_APPLICATION_KEY_ID }}" B2_APPLICATION_KEY: "${{ secrets.B2_APPLICATION_KEY }}"