diff options
| author | Egor Tensin <egor@tensin.name> | 2026-05-20 10:52:57 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-05-20 10:52:57 +0200 |
| commit | 4d483cf4df99de78d42926d767104c4df5081fda (patch) | |
| tree | bed5cdf2edb173f76121faae76fd30de4d2d6070 /.github/workflows/publish.yml | |
| parent | workflows: split out the PyPI publishing workflow (diff) | |
| download | cmake-common-4d483cf4df99de78d42926d767104c4df5081fda.tar.gz cmake-common-4d483cf4df99de78d42926d767104c4df5081fda.zip | |
workflows: rework the publish workflow
For some reason, when using workflow_run: trigger, it gets triggered on
any listed workflow, not on all of them as I would expect.
Diffstat (limited to '.github/workflows/publish.yml')
| -rw-r--r-- | .github/workflows/publish.yml | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 6d1c560..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Publish - -on: - workflow_run: - workflows: - - Basic - - Boost (toolsets) - - Examples (toolsets) - types: [completed] - -jobs: - # Build a Python package and upload to PyPI. - publish: - runs-on: ubuntu-latest - if: github.event.workflow_run.conclusion == 'success' - name: Publish - steps: - - name: Checkout - uses: actions/checkout@v6 - with: - fetch-depth: 0 - - name: Set up Python - uses: actions/setup-python@v6 - with: - python-version: '3.x' - - name: Verify package can be installed - run: pip install -q . - - name: Install package builder - run: pip install -q --upgrade build - - name: Build package - run: python -m build - - name: Publish as artifact - uses: actions/upload-artifact@v7 - with: - name: dist - path: dist - if-no-files-found: error - - name: Publish to PyPI - if: startsWith(github.ref, 'refs/tags/') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: '${{ secrets.PYPI_API_TOKEN }}' |
