diff --git a/.github/workflows/test_and_publish.yml b/.github/workflows/test_and_publish.yml index 73f36b4..06d67db 100644 --- a/.github/workflows/test_and_publish.yml +++ b/.github/workflows/test_and_publish.yml @@ -56,13 +56,10 @@ jobs: name: Publish to TestPyPI environment: staging runs-on: ubuntu-latest - needs: - - is-duplicate - - test-code + needs: [test-code] if: | - needs.is-duplicate.outputs.should_skip != 'true' && - github.ref == 'refs/heads/main' && - github.event_name == 'push' + !failure() && + startsWith(github.ref, 'refs/tags/') steps: - name: Check out code @@ -90,13 +87,10 @@ jobs: name: Publish to PyPI environment: production runs-on: ubuntu-latest - needs: - - is-duplicate - - publish-to-test-pypi + needs: [publish-to-test-pypi] if: | - needs.is-duplicate.outputs.should_skip != 'true' && - github.ref == 'refs/heads/main' && - github.event_name == 'push' + !failure() && + startsWith(github.ref, 'refs/tags/') steps: - name: Check out code diff --git a/setup.cfg b/setup.cfg index cc9e568..ac8df03 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = python4yahdlc -version = 1.3.0 +version = 1.3.1 description = Python binding of the yahdlc library allowing to encode and decode HDLC frames. long_description = file: README.rst keywords = hdlc, yahdlc, binding, network