Skip to content

Commit 5461130

Browse files
committed
add publish workflow
1 parent adb1657 commit 5461130

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
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: pypi
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: '3.8'
16+
- name: Install Dependencies
17+
run: pip install poetry
18+
- name: Build & Upload
19+
env:
20+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
21+
run: |
22+
poetry config pypi-token.pypi $PYPI_TOKEN
23+
poetry version $(git describe --tags --abbrev=0)
24+
poetry build
25+
poetry publish

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name = "crescent-ext-docstrings"
66
packages = [
77
{include = "crescent/ext/docstrings" },
88
]
9-
version = "0.1.0"
9+
version = "0"
1010

1111
[tool.poetry.dependencies]
1212
docstring-parser = "^0.14.1"

0 commit comments

Comments
 (0)