diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index c2cf72a..7888d43 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -1,9 +1,14 @@ -name: "build_and_release" +name: "test_build_and_release" on: + push: + branches: + - main + - master + pull_request: + workflow_dispatch: release: - types: - - published + types: [created] jobs: ruff: @@ -21,6 +26,7 @@ jobs: build_and_release: runs-on: ubuntu-latest needs: [ruff, black] + if: github.event_name == 'release' && github.event.action == 'created' permissions: contents: read packages: write