mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2026-01-10 07:48:20 -05:00
SDK-2520: Configure deployment
This commit is contained in:
@@ -2,6 +2,7 @@ image: registry-gitlab.gog.com/galaxy-client/gitlab-ci-tools:latest
|
||||
|
||||
stages:
|
||||
- test
|
||||
- deploy
|
||||
|
||||
test_package:
|
||||
stage: test
|
||||
@@ -9,4 +10,14 @@ test_package:
|
||||
- pip install -r requirements.txt
|
||||
- pytest
|
||||
except:
|
||||
- tags
|
||||
- tags
|
||||
|
||||
deploy_package:
|
||||
stage: deploy
|
||||
script:
|
||||
- export VERSION=$(python setup.py --version)
|
||||
- python setup.py sdist --formats=gztar upload -r gog-pypi
|
||||
- curl -X POST --silent --show-error --fail
|
||||
"https://gitlab.gog.com/api/v4/projects/${CI_PROJECT_ID}/repository/tags?"
|
||||
"tag_name=${VERSION}&ref=${CI_COMMIT_REF_NAME}&private_token=${PACKAGE_DEPLOYER_API_TOKEN}"
|
||||
when: manual
|
||||
|
||||
Reference in New Issue
Block a user