Skip to content

Commit

Permalink
Publish a package to PyPi automatically (#10)
Browse files Browse the repository at this point in the history
* Add pypi-publish.yml

* Bump version
  • Loading branch information
yasufumy authored Sep 15, 2021
1 parent 83b1e83 commit d5bf444
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Build a binary wheel and a source tarball
run: |
poetry build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "seqlabel"
version = "0.2.2"
version = "0.2.3"
description = "Rule-based Text Labeling Framework Aiming at Flexibility"
authors = ["Yasufumi Taniguchi <yasufumi.taniguchi@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit d5bf444

Please sign in to comment.