diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 503d72f..354565c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,17 +1,15 @@ name: Publish Python Package on: + release: + types: [created] workflow_run: - workflows: ["Run Tests"] + workflows: ["Run Tests"] types: - completed branches: - master - if: ${{ github.event.workflow_run.conclusion == 'success' }} - release: - types: [created] - jobs: test: runs-on: ubuntu-latest @@ -31,6 +29,7 @@ jobs: pip install --upgrade pip pip install -e '.[test]' deploy: + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest needs: [test] environment: release