Skip to content

Commit 6ad29b4

Browse files
authored
Merge pull request #310 from yukinarit/publish
Publish with Github Actions
2 parents 21fccac + a7999a0 commit 6ad29b4

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

.github/workflows/publish.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
publish:
9+
name: Publish
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Install poetry
14+
run: pip install poetry poetry-dynamic-versioning
15+
- name: Set up Python 3.10
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: "3.10"
19+
cache: poetry
20+
cache-dependency-path: pyproject.toml
21+
- name: Install dependencies
22+
run: make setup
23+
- name: Publish to PyPI
24+
run: |
25+
poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}

pyproject.toml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pyserde"
3-
version = "0.9.7"
3+
version = "0.0.0" # using poetry-dynamic-versioning
44
description = "Yet another serialization library on top of dataclasses"
55
authors = ["yukinarit <[email protected]>"]
66
license = "MIT"
@@ -74,5 +74,9 @@ orjson = ["orjson"]
7474
all = ["msgpack", "tomli", "tomli-w", "pyyaml", "numpy", "orjson"]
7575

7676
[build-system]
77-
requires = ["poetry-core>=1.0.0"]
78-
build-backend = "poetry.core.masonry.api"
77+
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
78+
build-backend = "poetry_dynamic_versioning.backend"
79+
80+
[tool.poetry-dynamic-versioning]
81+
enable = true
82+
style = "pep440"

0 commit comments

Comments
 (0)