diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7dc1287c..adb7f171 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -8,6 +8,7 @@ on: tags: - "*" pull_request: + workflow_dispatch: # Allow one concurrent deployment concurrency: @@ -86,6 +87,7 @@ jobs: linux: name: build linux runs-on: ubuntu-latest + needs: [test] steps: - uses: actions/checkout@v3 - uses: PyO3/maturin-action@v1.40.1 @@ -102,6 +104,7 @@ jobs: windows: name: build windows runs-on: windows-latest + needs: [test] steps: - uses: actions/checkout@v3 - uses: PyO3/maturin-action@v1.40.1 @@ -117,6 +120,7 @@ jobs: macos: name: build macos runs-on: macos-latest + needs: [test] steps: - uses: actions/checkout@v3 - uses: PyO3/maturin-action@v1.40.1 @@ -132,7 +136,7 @@ jobs: release: name: Release runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') + if: startsWith(github.ref, 'refs/tags/') || (github.event_name == 'workflow_dispatch') needs: [macos, windows, linux] steps: - uses: actions/download-artifact@v2