Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
a710128 committed Oct 18, 2021
1 parent 20001d1 commit 75f7fcc
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Publish to PyPI"
on:
release:
types:
- published
jobs:
build-n-publish:
name: Build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: '3.7'
architecture: 'x64'
- name: Run build script
run: |
pip install twine --user
pip install wheel
BM_BUILD=1 BM_VERSION=${GITHUB_REF##refs/tags/v} python3 setup.py sdist --format=gztar
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}

0 comments on commit 75f7fcc

Please sign in to comment.