Skip to content

Commit

Permalink
Create GitHub release after deploy
Browse files Browse the repository at this point in the history
Also modernize how the package is generated by using `build` instead of deprecated `setup.py`.

Close #139
  • Loading branch information
nicoddemus committed Aug 31, 2023
1 parent af2bc6a commit bcd0614
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,19 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: "3.7"
- name: Install wheel
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install build
- name: Build package
run: |
python setup.py sdist bdist_wheel
python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_token }}
- name: GitHub Release
uses: softprops/action-gh-release@v1
with:
files: dist/*

0 comments on commit bcd0614

Please sign in to comment.