-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8782856
commit 3ca7ba3
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Install, deploy to PyPI | ||
on: | ||
push: | ||
tags: [ "**" ] | ||
workflow_dispatch: | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' | ||
cache: pip | ||
- name: Install bmdf | ||
run: pip install -e . | ||
- name: Verify README examples are up to date | ||
run: | | ||
mdcmd -i README.md | ||
if git diff --exit-code; then | ||
echo "README examples are up to date." | ||
else | ||
echo "README examples are out of date." | ||
exit 1 | ||
fi | ||
- name: Release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
pip install setuptools twine wheel | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools", "utz[setup]==0.8.1", "wheel"] | ||
requires = ["setuptools", "utz[setup]>=0.7.2", "wheel"] | ||
build-backend = "setuptools.build_meta" |