From 35c5e82e1e19ebae7dff866fe30d86518ce384ed Mon Sep 17 00:00:00 2001 From: Alexis Asseman Date: Thu, 3 Nov 2022 18:26:54 -0700 Subject: [PATCH] ci: auto semver releases Signed-off-by: Alexis Asseman --- .github/workflows/semver.yml | 23 +++++++++++++++++++++++ pyproject.toml | 6 ++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/semver.yml 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"