Skip to content

Commit

Permalink
GitHub actions: trigger publish-pypi workflow from ci-cd workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjankoehler committed Dec 6, 2024
1 parent f405c19 commit 931139f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ name: Multi-platform Python/C++ build/test
on:
push:
branches: [ "main" ]
paths-ignore:
- '.github/workflows/publish*.yml'
pull_request:
branches: [ "main" ]
paths-ignore:
- '.github/workflows/publish*.yml'

concurrency:
group: ${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }}
Expand Down Expand Up @@ -227,3 +231,8 @@ jobs:
retention-days: 1
if-no-files-found: error

call-publish-pypi:
name: "Trigger workflow to publish distribution 📦s to PyPI/TestPyPI"
needs: build_and_test
uses: ./.github/workflows/publish-pypi.yml

0 comments on commit 931139f

Please sign in to comment.