Skip to content

Commit a5cf8a0

Browse files
committed
workflows/release: allow building pre-release tags
When we build a pre-release tag, we don't want to upload the packages to packagecloud, since they would have a number greater than the main release, but we still want to build them. Check if the tag is a pre-release tag and don't upload it to packagecloud.
1 parent 65c955a commit a5cf8a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
- run: git clone https://github.com/git-lfs/build-dockers.git "$HOME/build-dockers"
6868
- run: (cd "$HOME/build-dockers" && ./build_dockers.bsh)
6969
- run: DOCKER_AUTOPULL=0 ./docker/run_dockers.bsh
70-
- run: ./script/packagecloud.rb
70+
# If this is a pre-release tag, don't upload anything to packagecloud.
71+
- run: '[ -z "${GITHUB_REF%%refs/tags/*-pre*}" ] || ./script/packagecloud.rb'
7172
env:
7273
PACKAGECLOUD_TOKEN: ${{secrets.PACKAGECLOUD_TOKEN}}

0 commit comments

Comments
 (0)