-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manual dispatch to test and then deploy just takes far too long - waiting for the merge-to-master run, the tag run, then two manual runs. If we could have a manually triggered deployment-only workflow that can fetch the dist artifacts from the tag build, that would be ideal.
- Loading branch information
Showing
1 changed file
with
4 additions
and
19 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 |
---|---|---|
|
@@ -7,15 +7,6 @@ on: | |
tags: | ||
- 'v*' | ||
workflow_dispatch: | ||
inputs: | ||
pypi_server: | ||
description: 'PyPI Server' | ||
required: true | ||
default: 'Test PyPI' | ||
type: choice | ||
options: | ||
- 'Test PyPI' | ||
- 'PyPI' | ||
|
||
jobs: | ||
build_wheels: | ||
|
@@ -66,24 +57,18 @@ jobs: | |
name: Publish to PyPI | ||
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-latest | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} && ${{ github.event_name == 'workflow_dispatch' }} | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- name: Publish wheels to Test PyPI | ||
- name: Publish dist to PyPI | ||
uses: pypa/[email protected] | ||
if: ${{ github.events.inputs.pypi_server == 'Test PyPI' }} | ||
with: | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
|
||
- name: Publish wheels to PyPI | ||
uses: pypa/[email protected] | ||
if: ${{ github.events.inputs.pypi_server == 'PyPI' }} | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
# password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
# repository_url: https://test.pypi.org/legacy/ |