2 Commits
Author SHA1 Message Date
Kyle Schwarz f4fe69f992 CI: Adjust twine upload args 2026-11-01 11:28:02 -05:00
Kyle Schwarz 7ff14ae86d CI: Add tag upload & deploy 2026-10-31 11:24:38 -04:00
+12 -2
View File
@@ -329,9 +329,10 @@ deploy python/pypi:
image: python:3.13 image: python:3.13
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_TAG
script: script:
- python3 -m pip install -U twine - python3 -m pip install -U twine
- twine upload wheelhouse/* - twine upload --verbose wheelhouse/*
dependencies: dependencies:
- build python/linux/amd64 - build python/linux/amd64
- build python/linux/arm64 - build python/linux/arm64
@@ -349,14 +350,23 @@ push github:
tags: tags:
- linux-build - linux-build
image: alpine:latest image: alpine:latest
variables:
GIT_DEPTH: 0
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: delayed when: delayed
start_in: 10 minutes start_in: 10 minutes
variables:
REFSPEC: HEAD:master
- if: $CI_COMMIT_TAG
when: delayed
start_in: 10 minutes
variables:
REFSPEC: $CI_COMMIT_TAG
dependencies: dependencies:
- deploy python/pypi - deploy python/pypi
needs: needs:
- deploy python/pypi - deploy python/pypi
script: script:
- apk add git - apk add git
- git push https://$LIBICSNEO_GITHUB_USERNAME:$LIBICSNEO_GITHUB_TOKEN@github.com/intrepidcs/libicsneo.git HEAD:master - git push https://$LIBICSNEO_GITHUB_USERNAME:$LIBICSNEO_GITHUB_TOKEN@github.com/intrepidcs/libicsneo.git $REFSPEC