-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 changed file
with
41 additions
and
0 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,41 @@ | ||
# my twine key is in | ||
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
|
||
name: Publish brightest to PyPi (cudmore) | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Release (cudmore)"] | ||
types: [completed] | ||
#branches: [master] | ||
|
||
jobs: | ||
deploy: | ||
# this will run when you have tagged a commit, starting with "v*" | ||
# and requires that you have put your twine API key in your | ||
# github secrets (see readme for details) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source (cudmore) | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # needed so setuptools_scm can get tags | ||
- name: Set up Python (cudmore) | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- name: Install dependencies (cudmore) | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -U setuptools wheel twine build | ||
#pip install -U '.[gui]' | ||
pip install -U . | ||
- name: Build and publish (cudmore) | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
run: | | ||
git tag | ||
#python setup.py --version | ||
python -m build . | ||
twine upload dist/* |