diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..55e4db0 --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,22 @@ +name: Release +on: + push: + branches: [main] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - run: pip install python-semantic-release + + - run: semantic-release version --push --vcs-release + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..56e52c1 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,13 @@ +#:schema https://json.schemastore.org/pyproject.json + +[tool.semantic_release] +commit_parser = "angular" +version_toml = [] +tag_format = "v{version}" + +[tool.semantic_release.remote] +type = "gitea" +domain = "git.maximhutz.com" + +[tool.semantic_release.remote.token] +env = "GITEA_TOKEN"