Commit 1ea201bd authored by Daniel Scheffler's avatar Daniel Scheffler

Changed variables.

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 88d5450f
Pipeline #8211 passed with stage
in 14 seconds
#!/usr/bin/env bash
# NOTE: The environment variables are present during the CI job.
URL_RELEASES=https://api.github.com/repos/$GITHUB_USER/$GITHUB_REPONAME/releases
# create the release
......@@ -15,7 +17,7 @@ curl $URL_RELEASES --data "$API_JSON" -H "$AUTH_HEADER"
# get latest release tag name
LATEST_RELEASE=$(curl -s "$URL_RELEASES"/latest | grep -oP '"tag_name": "\K(.*)(?=")')
if [ $LATEST_RELEASE != $CI_COMMIT_TAG ]; then
if [ "$LATEST_RELEASE" != "$CI_COMMIT_TAG" ]; then
echo "Error: Could not properly create the release!" 1>&2
exit 1
fi
......@@ -8,10 +8,9 @@ stages:
create_github_release:
stage: deploy
variables:
GITHUB_USER: danschef
GUTHUB_REPONAME: doi_testproject
script:
- export GITHUB_USER=danschef
- export GUTHUB_REPONAME=doi_testproject
- bash ./.github/make_release.sh
only:
- /^v\d+\.\d+\.\d+([abc]\d*)?$/ # PEP-440 compliant version (tags)
......
......@@ -48,6 +48,6 @@ setup(
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/danschef/doi_testproject',
version='0.1.38',
version='0.1.39',
zip_safe=False,
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment