Skip to content

Commit

Permalink
Allow uploading Github Actions -> PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrkilczuk committed Jan 13, 2021
1 parent 772e3b3 commit d524568
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pypi_upload.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PYPI Upload

on:
- workflow_dispatch

jobs:
pypi_upload:
name: pypi-upload
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Build Package
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml → .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: build
name: tests

on:
- push
- pull_request

jobs:
test:
name: build
name: tests
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit d524568

Please sign in to comment.