Skip to content

Commit

Permalink
Merge pull request adfinis#577 from Yelinz/pypi
Browse files Browse the repository at this point in the history
chore: introduce pypi workflow
  • Loading branch information
open-dynaMIX authored Jan 12, 2023
2 parents 118964b + 722d097 commit 01d0b0c
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: PyPI

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install poetry
run: pipx install poetry

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: "3.8"
cache: "poetry"

- name: Install dependencies
run: |
python -m pip install -U twine
poetry install
- name: Build package
run: poetry build

- name: Upload to PyPI
run: twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
TWINE_NON_INTERACTIVE: true
2 changes: 1 addition & 1 deletion MIGRATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Migration from v1 to v2
# Migration from v5 to v6
**Warning**

The `group` attribute will be removed from the Template model.
Expand Down
18 changes: 16 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
[tool.poetry]
name = "document-merge-service"
version = "5.2.0"
version = "5.2.1"
description = "Merge Document Template Service"
authors = ["Adfinis AG"]
license = "GPL-3.0-or-later"
authors = ["Adfinis AG <[email protected]>"]
homepage = "https://github.com/adfinis/document-merge-service"
repository = "https://github.com/adfinis/document-merge-service"
documentation = "https://github.com/adfinis/document-merge-service/blob/main/README.md"
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3.8",
]
include = ["CHANGELOG.md"]
exclude = [
"document-merge-service/**/tests",
]

[tool.poetry.dependencies]
python = "^3.8"
Expand Down

0 comments on commit 01d0b0c

Please sign in to comment.