Skip to content

Commit a7999a0

Browse files
committed
Publish with Github Actions
1 parent 8817c63 commit a7999a0

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ yaml = ["pyyaml"]
7373
orjson = ["orjson"]
7474
all = ["msgpack", "tomli", "tomli-w", "pyyaml", "numpy", "orjson"]
7575

76-
[tool.poetry.group.dev.dependencies]
77-
poetry-dynamic-versioning = "^0.21.3"
78-
7976
[build-system]
8077
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
8178
build-backend = "poetry_dynamic_versioning.backend"

0 commit comments

Comments
 (0)