Commit 88d5450f authored by Daniel Scheffler's avatar Daniel Scheffler

Cleaned up. Moved variables to .gitlab-ci.yml.

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 295a8f18
Pipeline #8210 passed with stage
in 13 seconds
#!/usr/bin/env bash
USER=danschef
REPO=doi_testproject
URL_RELEASES=https://api.github.com/repos/$USER/$REPO/releases
URL_RELEASES=https://api.github.com/repos/$GITHUB_USER/$GITHUB_REPONAME/releases
# create the release
API_JSON=$(printf '{"tag_name":"%s",
......
......@@ -8,20 +8,11 @@ stages:
create_github_release:
stage: deploy
variables:
GITHUB_USER: danschef
GUTHUB_REPONAME: doi_testproject
script:
- bash ./.github/make_release.sh
# - API_JSON=$(printf '{"tag_name":"%s",
# "target_commitish":"master",
# "name":"%s",
# "body":"",
# "draft":false,
# "prerelease":false}' $CI_COMMIT_TAG $CI_COMMIT_TAG)
# - 'AUTH_HEADER="Authorization: token $GITHUB_RELEASE_TOKEN"' # quotes avoid YAML syntax error caused by ':'
# - curl https://api.github.com/repos/danschef/doi_testproject/releases --data "$API_JSON" -H "$AUTH_HEADER"
# - LATEST_RELEASE=$(curl -s https://api.github.com/repos/danschef/doi_testproject/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
# - if [ "``" != $CI_COMMIT_TAG ]; then; echo "Found a Tomcat!"; fi
# - wget https://github.com/danschef/doi_testproject/releases/tag/$CI_COMMIT_TAG # fails when release failed
# - rm -rf ./$CI_COMMIT_TAG
only:
- /^v\d+\.\d+\.\d+([abc]\d*)?$/ # PEP-440 compliant version (tags)
except:
......
......@@ -48,6 +48,6 @@ setup(
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/danschef/doi_testproject',
version='0.1.37',
version='0.1.38',
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