We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a248e0 commit ed08de3Copy full SHA for ed08de3
.github/workflows/tests.yml renamed to .github/workflows/ci.yml
@@ -53,3 +53,21 @@ jobs:
53
54
- name: Run tests
55
run: poetry run pytest
56
+
57
+ release:
58
+ if: github.ref == 'refs/heads/main'
59
+ runs-on: ubuntu-latest
60
+ concurrency: release
61
+ permissions:
62
+ id-token: write
63
+ contents: write
64
65
+ steps:
66
+ - uses: actions/checkout@v3
67
+ with:
68
+ fetch-depth: 0
69
70
+ - name: Python Semantic Release
71
+ uses: python-semantic-release/python-semantic-release@master
72
73
+ github_token: ${{ secrets.GITHUB_TOKEN }}
.github/workflows/release.yml
pyproject.toml
@@ -15,3 +15,6 @@ pytest = "^8.1.1"
15
[build-system]
16
requires = ["poetry-core"]
17
build-backend = "poetry.core.masonry.api"
18
19
+[tool.semantic_release]
20
+version_toml = ["pyproject.toml:tool.poetry.version"]
0 commit comments