Skip to content

Commit

Permalink
Setup deployment workflow.
Browse files Browse the repository at this point in the history
File permissions on test data would be lost if delocate was deployed from
Windows.  This also helps automate deployment.
  • Loading branch information
HexDecimal committed Sep 18, 2021
1 parent 35d1e5e commit 8bf5cf0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pypi-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy delocate to PyPI

on:
push:
tags:
- "*.*.*"

jobs:
deploy:
runs-on: ubuntu-latest
steps:
# checkout@v1 is required since versioneer uses git describe.
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install deployment dependencies
run: |
pip install wheel twine
- name: Build distribution
run: |
python setup.py sdist bdist_wheel
- name: Upload to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/* --non-interactive --skip-existing

0 comments on commit 8bf5cf0

Please sign in to comment.