Skip to content

Commit

Permalink
feat: add github action that pushes to PYPI (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaranto committed Dec 21, 2022
1 parent 06a056d commit b4b325c
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/publish_python_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

on:
push:
branches:
- master
paths:
- 'draftquality/about.py'

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v3
with:
python-version: "3.7"
- name: Install pypa/build
run: >-
python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TEST_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: scoring-internal
password: ${{ secrets.PYPI_PASS }}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.0.4]

### Added
* Add Github Action that build & pushes to PYPI index

## [0.0.3]
- Allow requirement for revscoring 2.11.x
- Rebuilds models with revscoring-2.8.2
Expand Down
2 changes: 1 addition & 1 deletion draftquality/about.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__name__ = "draftquality"
__version__ = "0.0.3"
__version__ = "0.0.4"
__author__ = "Aaron Halfaker"
__author_email__ = "ahalfaker@wikimedia.org"
__description__ = "A library for performing automatic detection of the " + \
Expand Down

0 comments on commit b4b325c

Please sign in to comment.