-
Notifications
You must be signed in to change notification settings - Fork 18
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
Showing
2 changed files
with
43 additions
and
37 deletions.
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 |
---|---|---|
|
@@ -74,40 +74,3 @@ jobs: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} | ||
tags: true | ||
|
||
publish: | ||
runs-on: ubuntu-latest | ||
needs: bump | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
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: | ||
verify_metadata: false | ||
user: __token__ | ||
password: ${{ secrets.pypi_password }} | ||
packages_dir: clean-build/ |
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,43 @@ | ||
name: Build and release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" # Push events to all tags' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
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: | ||
verify_metadata: false | ||
user: __token__ | ||
password: ${{ secrets.pypi_password }} | ||
packages_dir: clean-build/ |