Skip to content

Commit

Permalink
Added semantic release tool to pyproject.toml and updated github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Mustaballer committed May 31, 2023
1 parent f498c7d commit 97863ee
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 40 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/publishing.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Semantic Release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
concurrency: release

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 }}
pypi_token: ${{ secrets.TEST_PYPI_API_TOKEN }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[Join us on Slack](https://join.slack.com/t/mldsai/shared_invite/zt-1uf94nn7r-qcQnS~hinLPKftUapNzbuw)

# OpenAdapt: AI-First Process Automation with Transformers
v{version}

Welcome to OpenAdapt! This Python library implements AI-First Process Automation
with the power of Transformers by:
Expand Down
1 change: 1 addition & 0 deletions openadapt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.02"
18 changes: 17 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,20 @@ classifiers = [

[project.urls]
"Homepage" = "https://github.com/MLDSAI/OpenAdapt"
"Bug Tracker" = "https://github.com/MLDSAI/OpenAdapt/issues"
"Bug Tracker" = "https://github.com/MLDSAI/OpenAdapt/issues"

[tool.semantic_release]
version_variable = [
"openadapt/__init__.py:__version__"
]
version_toml = [
"pyproject.toml:tool.poetry.version"
]
version_pattern = [
"README.md:rev: v{version}",
]
major_on_zero = false
branch = "main"
upload_to_PyPI = true
upload_to_release = true
build_command = "pip install poetry && poetry build"

0 comments on commit 97863ee

Please sign in to comment.