Skip to content

Commit

Permalink
Merge pull request #8 from czosel/prepare-pip
Browse files Browse the repository at this point in the history
chore: add LICENSE, add and refactor metadata
  • Loading branch information
David Vogt authored Feb 16, 2021
2 parents 9075399 + dd847db commit 5c44e1d
Show file tree
Hide file tree
Showing 5 changed files with 735 additions and 13 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@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel twine
- name: Remove existing packages
run: rm -rf ./dist/ ./ebau_gwr.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/*
Loading

0 comments on commit 5c44e1d

Please sign in to comment.