Skip to content

Commit eac50f9

Browse files
committed
ci: prevent beta branch builds from triggering production release steps
Skip Windows and Linux code signing, along with artifact downloads for the beta branch to ensure beta builds don't go through production release processes.
1 parent 1a902b2 commit eac50f9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
- build-cli
115115
- version
116116
runs-on: blacksmith-4vcpu-windows-2025
117-
if: github.repository == 'anomalyco/opencode'
117+
if: github.repository == 'anomalyco/opencode' && github.ref_name != 'beta'
118118
env:
119119
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
120120
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
@@ -390,6 +390,7 @@ jobs:
390390
needs:
391391
- build-cli
392392
- version
393+
if: github.repository == 'anomalyco/opencode' && github.ref_name != 'beta'
393394
continue-on-error: false
394395
env:
395396
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
@@ -422,7 +423,6 @@ jobs:
422423
target: aarch64-unknown-linux-gnu
423424
platform_flag: --linux
424425
runs-on: ${{ matrix.settings.host }}
425-
# if: github.ref_name == 'beta'
426426
steps:
427427
- uses: actions/checkout@v3
428428

@@ -591,12 +591,13 @@ jobs:
591591
path: packages/opencode/dist
592592

593593
- uses: actions/download-artifact@v4
594+
if: github.ref_name != 'beta'
594595
with:
595596
name: opencode-cli-signed-windows
596597
path: packages/opencode/dist
597598

598599
- uses: actions/download-artifact@v4
599-
if: needs.version.outputs.release
600+
if: needs.version.outputs.release && github.ref_name != 'beta'
600601
with:
601602
pattern: latest-yml-*
602603
path: /tmp/latest-yml

0 commit comments

Comments
 (0)