Skip to content

Commit

Permalink
[ci,wheel] Fix bugfix branch pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Dec 1, 2023
1 parent 4d43d39 commit a888812
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/ci/jobs/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ workflow:
# TODO: does not work:
PYPI_AUTH: --username __token__ --password "${PYPI_TOKEN}"
GIT_DEPTH: 1000
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH || ('$CI_COMMIT_BRANCH =~ /^v[0-9]\.[0-9]\.[0-9]/ && $CI_PROJECT_PATH == "ogs/ogs"')
variables:
PYPI_REPO: --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi
PYPI_AUTH: --username gitlab-ci-token --password ${CI_JOB_TOKEN}
Expand All @@ -35,6 +35,9 @@ include:
variables:
CIBW_BUILD: cp310*
GIT_DEPTH: 1000
- if: '$CI_COMMIT_BRANCH =~ /^v[0-9]\.[0-9]\.[0-9]/ && $CI_PROJECT_PATH == "ogs/ogs"'
variables:
SETUPTOOLS_SCM_VERSION_SCHEME: post-release
- when: on_success
artifacts:
paths:
Expand Down Expand Up @@ -74,6 +77,7 @@ publish wheels:
rules:
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: '$CI_COMMIT_BRANCH =~ /^v[0-9]\.[0-9]\.[0-9]/ && $CI_PROJECT_PATH == "ogs/ogs"'
- when: never
script:
- pipx run build --sdist --outdir wheelhouse
Expand Down

0 comments on commit a888812

Please sign in to comment.