diff --git a/.github/workflows/_build-non-pure-python-package.yml b/.github/workflows/_build-non-pure-python-package.yml new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/_build-wheel-release-upload.yml b/.github/workflows/_build-wheel-release-upload.yml index 68a040f..71c7f31 100644 --- a/.github/workflows/_build-wheel-release-upload.yml +++ b/.github/workflows/_build-wheel-release-upload.yml @@ -8,6 +8,11 @@ on: default: 'PROJECT_NAME' required: false type: string + c_extension: + description: 'Whether the project has a C extension' + default: false + required: false + type: boolean secrets: PYPI_TOKEN: description: 'PyPI token' @@ -20,12 +25,19 @@ jobs: tag-privilege-check: uses: bobleesj/release-scripts/.github/workflows/_release_tag_privilege_check.yml@v0 - build-package: + build-pure-python-package: + needs: [tag-privilege-check] + if: inputs.c_extension == 'true' + uses: bobleesj/release-scripts/.github/workflows/_build-non-pure-python-package.yml@v0 + + build-non-pure-python-package: needs: [tag-privilege-check] + if: inputs.c_extension == 'false' uses: bobleesj/release-scripts/.github/workflows/_build-pure-python-package.yml@v0 - + update-changelog: - needs: [build-package] + needs: [build-pure-python-package, build-non-pure-python-package] + if: "!contains(github.ref, 'rc')" runs-on: ubuntu-latest steps: