Skip to content

Commit

Permalink
Merge pull request #57 from open-dynaMIX/add_pypi_workflow
Browse files Browse the repository at this point in the history
chore: Add workflow for automagic PyPI release
  • Loading branch information
open-dynaMIX authored Dec 26, 2021
2 parents 895dacd + 1a48123 commit bd0b955
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PyPI

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Remove existing packages
run: rm -rf ./dist/ ./anonip.egg-info/ ./build/
- name: Run twine
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
TWINE_NON_INTERACTIVE: true
run: |
python setup.py sdist bdist_wheel
twine upload dist/*

0 comments on commit bd0b955

Please sign in to comment.