Skip to content

Commit

Permalink
setup: build & release
Browse files Browse the repository at this point in the history
  • Loading branch information
drjova committed Dec 11, 2023
1 parent 754c1a9 commit dd840ff
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 48 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,29 @@ jobs:
run: |
bump2version patch --tag --verbose
- name: Push changes
uses: ad-m/github-push-action@master
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Install python dependencies
run: |
pip --no-cache-dir install setuptools wheel "urllib3==1.25.11"
pip --no-cache-dir install -e .[tests,docs]
- name: Show python dependencies
run: |
pip freeze
- name: Build package
run: |
mkdir clean-build
python setup.py sdist bdist_wheel --universal --dist-dir ./clean-build
- name: Publish package
uses: pypa/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
tags: true
verify_metadata: false
user: __token__
password: ${{ secrets.pypi_password }}
packages_dir: clean-build/
43 changes: 0 additions & 43 deletions .github/workflows/publish.yml

This file was deleted.

0 comments on commit dd840ff

Please sign in to comment.