This commit is contained in:
icex2
2021-12-28 23:15:46 +01:00
parent bfe68f8708
commit a81997dce8
3 changed files with 12 additions and 13 deletions

View File

@@ -62,7 +62,7 @@ upload-package-registry:
else
version="${CI_COMMIT_SHORT_SHA}"
fi
- |
curl \
--silent \
--fail \
@@ -116,18 +116,13 @@ release-pigstall:
refs:
- tags
script:
- version="${CI_COMMIT_TAG}"
- changelog_excerpt="$(scripts/ci/create-release-message.sh "${version}" < CHANGELOG.md)"
- release_message="$(printf "bemanitools ${version} released\n${CI_TOOLS_URL}/bemanitools-v${version}.zip\n${changelog_excerpt}")"
- session="$(echo "$CI_PIGSTALL_SESSION_BASE64" | base64 -d)"
- data_prefix="$(echo "$CI_PIGSTALL_DATA_PREFIX_BASE64" | base64 -d)"
- link="$(echo "$CI_PIGSTALL_LINK_BASE64" | base64 -d)"
- |
version="${CI_COMMIT_TAG}"
changelog_excerpt="$(scripts/ci/create-release-message.sh "${version}" < CHANGELOG.md)"
release_message="$(printf \
"bemanitools ${version} released\n${CI_TOOLS_URL}/bemanitools-v${version}.zip\n${changelog_excerpt}")"
session="$(echo "$CI_PIGSTALL_SESSION_BASE64" | base64 -d)"
data_prefix="$(echo "$CI_PIGSTALL_DATA_PREFIX_BASE64" | base64 -d)"
link="$(echo "$CI_PIGSTALL_LINK_BASE64" | base64 -d)"
curl \
--silent \
--fail \

View File

@@ -2,6 +2,10 @@
Note for CI/CD: Ensure the version formatting in the sections is kept identical to the versions
given in tags. The pipeline will pick this up and cuts out the relevant section for release notes.
## 0.00
testing release pipeline
## 5.37
## 5.36

View File

@@ -23,6 +23,6 @@ if [ "$changelog_excerpt" ]; then
printf "%s" "$changelog_excerpt"
exit 0
else
echo "Could not find version in changelog: $VERSION"
>&2 echo "Could not find version in changelog: $VERSION"
exit 1
fi