Make sure --private-token is set before the release-cli create subcommand

This commit is contained in:
Justin Kromlinger 2021-10-18 12:03:30 +02:00
parent ce17571d1f
commit ed6f8898e0
No known key found for this signature in database
GPG Key ID: 69EF6D9E49A64EB8

View File

@ -257,8 +257,9 @@ release:
# TODO: We should actually be able to do something like \"url\":\"${PACKAGE_REGISTRY_URL}/base-${BUILD_VERSION}.tar.xz\"
# But it doesn't appear that those downloads are public. I consider this a bug and hopefully it's fixed in a future version!
echo "Creating release"
release-cli create --name "Release ${BUILD_VERSION}" --description "Release ${BUILD_VERSION}" \
--private-token "${GITLAB_PROJECT_TOKEN}" \
release-cli --private-token "${GITLAB_PROJECT_TOKEN}" create \
--name "Release ${BUILD_VERSION}" \
--description "Release ${BUILD_VERSION}" \
--tag-name v${BUILD_VERSION} --ref "releases" \
--assets-link "{\"name\":\"base-${BUILD_VERSION}.tar.xz\",\"url\":\"${base_url}\"}" \
--assets-link "{\"name\":\"base-${BUILD_VERSION}.tar.xz.SHA256\",\"url\":\"${base_sha_url}\"}" \