Skip to content

Commit

Permalink
ci: only publish to b2 if pushed via tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzzy committed Jul 12, 2024
1 parent cfdf4d4 commit 18e865e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 18e865e

Please sign in to comment.