Skip to content
Snippets Groups Projects
Commit ef20f55f authored by Leo's avatar Leo
Browse files

fix(CI): add artifacts and fix registry

parent 144abc60
No related branches found
No related tags found
No related merge requests found
Pipeline #291427 failed
...@@ -6,13 +6,21 @@ build: ...@@ -6,13 +6,21 @@ build:
script: script:
- echo "Building the Git Profile Manager (wheel)" - echo "Building the Git Profile Manager (wheel)"
- make build - make build
artifacts:
paths:
- dist/*
cache:
paths:
- dist/
deploy: deploy:
image: python:3.12 image: python:3.12
stage: deploy stage: deploy
before_script: before_script:
- pip install twine - pip install twine
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
script: script:
- echo "Deploying the Git Profile Manager" - echo "Deploying the Git Profile Manager"
- python3 -m twine upload --repository gitlab dist/* - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
\ No newline at end of file cache:
paths:
- dist/
\ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="2f47370d-26d1-4fc6-a93f-363c8b4c6e5a" name="Changes" comment=""> <list default="true" id="2f47370d-26d1-4fc6-a93f-363c8b4c6e5a" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.gitlab-ci.yml" beforeDir="false" afterPath="$PROJECT_DIR$/.gitlab-ci.yml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.gitlab-ci.yml" beforeDir="false" afterPath="$PROJECT_DIR$/.gitlab-ci.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
...@@ -83,7 +84,7 @@ ...@@ -83,7 +84,7 @@
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1724140762915</updated> <updated>1724140762915</updated>
<workItem from="1724140765116" duration="10726000" /> <workItem from="1724140765116" duration="10726000" />
<workItem from="1724224393281" duration="5854000" /> <workItem from="1724224393281" duration="5989000" />
</task> </task>
<servers /> <servers />
</component> </component>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment