Skip to content

Commit b89367d

Browse files
author
Joe Doss
committed
Move package upload logic for pre-releases to package-upload script.
1 parent 3d3d575 commit b89367d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ jobs:
127127
echo "RELEASE_DATE=${RELEASE_DATE}" >> "${GITHUB_ENV}"
128128
129129
- name: Run GoReleaser Pro
130-
if: ${{ needs.create_release.outputs.is_prerelease == 'false' }}
131130
uses: goreleaser/[email protected]
132131
with:
133132
distribution: goreleaser-pro

scripts/package-upload.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ echo "Version: ${VERSION}"
1313
echo "Release: ${RELEASE}"
1414
echo "Location: ${GCLOUD_LOCATION}"
1515

16+
if [[ ${IS_PRERELEASE} == "true" ]]; then
17+
echo "Skipping artifact import; IS_PRERELEASE is 'true'"
18+
exit 0;
19+
fi
20+
1621
if [ "${FILE: -4}" == ".deb" ]; then
1722
if [[ "${FILE}" =~ "armhf6" ]]; then
1823
echo "Skipping ${FILE} due to GCP Artifact Registry armhf conflict!"

0 commit comments

Comments
 (0)