-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Script the release in the GitHub action
This removes the use of our custom PyPI action for simplicity
- Loading branch information
1 parent
5240b97
commit 2d08913
Showing
1 changed file
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
on: release | ||
name: Publish | ||
name: Publish to PyPI | ||
on: [release] | ||
|
||
jobs: | ||
publishToPyPI: | ||
name: Publish to PyPI | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Publish to PyPI | ||
uses: cfpb/pypi-publish-action@master | ||
env: | ||
LIVE_PYPI: "True" | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install twine wheel | ||
- name: Build the package | ||
run: | | ||
python setup.py sdist bdist_wheel --universal | ||
- name: Upload to PyPI | ||
run: twine upload dist/* | ||
env: | ||
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} |