diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml new file mode 100644 index 0000000..3b52f85 --- /dev/null +++ b/.github/workflows/semver.yml @@ -0,0 +1,23 @@ +name: Semantic Release + +on: + push: + branches: + - master + +jobs: + release: + runs-on: ubuntu-latest + concurrency: release + permissions: + contents: write + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Python Semantic Release + uses: relekang/python-semantic-release@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index 71c8366..9355251 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,5 +33,11 @@ pyright = "^1.1.278" requires = ["poetry_core>=1.1.0",] build-backend = "poetry.core.masonry.api" +[tool.semantic_release] +upload_to_repository = false +version_source = "tag_only" +build_command = false +upload_to_release = false + [tool.isort] profile = "black"