Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
finam
Manage
Activity
Members
Labels
Plan
Issues
31
Issue boards
Milestones
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FINAM
finam
Commits
f3075dc8
Commit
f3075dc8
authored
2 years ago
by
Martin Lange
Browse files
Options
Downloads
Patches
Plain Diff
add a separate build stage
parent
9b19e14c
No related branches found
No related tags found
1 merge request
!200
Fix test-pypi release
Pipeline
#130961
passed with stages
in 3 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+20
-6
20 additions, 6 deletions
.gitlab-ci.yml
with
20 additions
and
6 deletions
.gitlab-ci.yml
+
20
−
6
View file @
f3075dc8
...
...
@@ -3,6 +3,7 @@ image: python
stages
:
-
test
-
build
-
docs
-
deploy
-
release
...
...
@@ -40,7 +41,7 @@ doctest:
-
sphinx-build -b doctest docs/source docs/build
documentation
:
stage
:
build
stage
:
docs
script
:
-
pip3 install --editable .[doc]
-
sphinx-build docs/source docs/build
...
...
@@ -58,22 +59,35 @@ pages:
only
:
-
main
pypi_test_release
:
stage
:
release
build
:
stage
:
build
variables
:
GIT_DEPTH
:
0
# to have all tags
script
:
-
pip install build
twine
-
pip install build
-
python -m build
artifacts
:
paths
:
-
dist
pypi_test_release
:
stage
:
release
script
:
-
pip install twine
-
python -m twine upload -r testpypi -u __token__ -p ${TEST_PYPI_TOKEN} dist/*
artifacts
:
paths
:
-
dist
only
:
-
main
pypi_release
:
stage
:
release
script
:
-
pip install build twine
-
python -m build
-
pip install twine
-
python -m twine upload -u __token__ -p ${PYPI_TOKEN} dist/*
artifacts
:
paths
:
-
dist
only
:
-
tags
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment