From c87b4f4533703ae36dafe854021ce1841816e245 Mon Sep 17 00:00:00 2001 From: Alexis Asseman Date: Fri, 4 Nov 2022 11:05:13 -0700 Subject: [PATCH] ci: add auto semantic release --- .github/workflows/semver.yml | 23 +++++++++++++++++++++++ setup.cfg | 5 +++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/semver.yml create mode 100644 setup.cfg 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/setup.cfg b/setup.cfg new file mode 100644 index 0000000..04871f9 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,5 @@ +[semantic_release] +upload_to_repository = false +version_source = tag_only +build_command = false +upload_to_release = false