Skip to content

Commit a23fa86

Browse files
authored
feat: add publish to pypi index (#67)
* feat: add PYPI index GH action * Update about.py
1 parent 9d6d3e6 commit a23fa86

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'drafttopic/about.py'
9+
10+
jobs:
11+
build-n-publish:
12+
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@master
16+
- name: Set up Python 3.7
17+
uses: actions/setup-python@v3
18+
with:
19+
python-version: "3.7"
20+
- name: Install pypa/build
21+
run: >-
22+
python -m pip install build --user
23+
- name: Build a binary wheel and a source tarball
24+
run: >-
25+
python -m
26+
build
27+
--sdist
28+
--wheel
29+
--outdir dist/
30+
.
31+
32+
- name: Publish distribution 📦 to Test PyPI
33+
uses: pypa/gh-action-pypi-publish@release/v1
34+
with:
35+
password: ${{ secrets.PYPI_TEST_TOKEN }}
36+
repository_url: https://test.pypi.org/legacy/
37+
38+
- name: Publish distribution 📦 to PyPI
39+
uses: pypa/gh-action-pypi-publish@release/v1
40+
with:
41+
user: scoring-internal
42+
password: ${{ secrets.PYPI_PASS }}

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
3+
## [0.4.1]
4+
5+
### Added
6+
* Add Github Action that build & pushes to PYPI index
7+
8+
## [0.4.0]
9+
10+
### Changed
11+
* Rebuild to add compatibility for revscoring 2.11
312

413
## [0.3.0]
514

drafttopic/about.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__name__ = "drafttopic"
2-
__version__ = "0.4.0"
2+
__version__ = "0.4.1"
33
__author__ = "Aaron Halfaker, Sumit Asthana"
44
__author_email__ = "ahalfaker@wikimedia.org, asthana.sumit23@gmail.com"
55
__description__ = "A library for automatic detection of topics of new " +\

0 commit comments

Comments
 (0)