-
Notifications
You must be signed in to change notification settings - Fork 634
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add publishTestPyPI and publishPyPI workflows.
add input requirement checkout based on input reference test cat _version.py file test publish use publish v1 (instead of release/v1), and p3.x instead of p3.9 apparently @release/v1 is needed (not just @v1) now try twine publishTestPyPI and publishPyPI workflows
- Loading branch information
1 parent
10095c6
commit 508ed24
Showing
3 changed files
with
86 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Upload Mplfinance to PyPI | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'version tag to deploy' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.inputs.tag }} | ||
|
||
- name: Display Coded Version | ||
#run: git show ${{ github.sha }}:src/mplfinance/_version.py | ||
run: egrep 'version_info .*=' src/mplfinance/_version.py | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
ls -l dist/* | ||
- name: Publish distribution to PyPI | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
run: 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Upload Mplfinance to TestPyPI | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'version tag to deploy' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.inputs.tag }} | ||
|
||
- name: Display Coded Version | ||
#run: git show ${{ github.sha }}:src/mplfinance/_version.py | ||
run: egrep 'version_info .*=' src/mplfinance/_version.py | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
ls -l dist/* | ||
- name: Publish distribution to Test PyPI | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
run: twine upload --repository-url https://test.pypi.org/legacy/ dist/* |
This file was deleted.
Oops, something went wrong.