Skip to content

Commit 1469ca8

Browse files
committed
don't publish bins from branches
Signed-off-by: Ashraf Fouda <ashraf.m.fouda@gmail.com>
1 parent e3f7eac commit 1469ca8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/bin-package.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
- name: Setup basesystem
4646
shell: bash
4747
run: |
48+
apt update
4849
cd bins
4950
./bins-extra.sh --package basesystem
5051
- name: Build package (${{ inputs.package }})
@@ -54,7 +55,7 @@ jobs:
5455
cd bins
5556
./bins-extra.sh --package ${{ inputs.package }}
5657
- name: Publish flist (tf-autobuilder, ${{ steps.package.outputs.name }})
57-
if: success()
58+
if: success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
5859
uses: threefoldtech/publish-flist@master
5960
with:
6061
token: ${{ secrets.token }}

0 commit comments

Comments
 (0)