Skip to content

Commit

Permalink
pypi workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkraemer committed Feb 7, 2022
1 parent cf87339 commit edca10e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# Source:
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

name: Upload Python Package

on:
release:
types: [published]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PyPi_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PyPi_PASSWORD }}
run: |
python -m build
twine upload dist/*py3-none-any.whl

0 comments on commit edca10e

Please sign in to comment.