Merge pull request #3262 from bdarnell/build-dispatch
ci: Enable manual dispatch for build workflow
This commit is contained in:
commit
c11a6eef3d
|
@ -7,12 +7,15 @@ name: Build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
# Run on release branches.
|
# Run on release branches. This gives us a chance to detect rot in this
|
||||||
|
# configuration before pushing a tag (which we'd rather not have to undo).
|
||||||
- "branch[0-9]*"
|
- "branch[0-9]*"
|
||||||
# Also run on certain other branches for testing.
|
|
||||||
- "build-workflow*"
|
|
||||||
tags:
|
tags:
|
||||||
|
# The main purpose of this workflow is to build wheels for release tags.
|
||||||
|
# It runs automatically on tags matching this pattern and pushes to pypi.
|
||||||
- "v*"
|
- "v*"
|
||||||
|
workflow_dispatch:
|
||||||
|
# Allow this workflow to be run manually (pushing to testpypi instead of pypi)
|
||||||
|
|
||||||
env:
|
env:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
|
@ -68,7 +71,7 @@ jobs:
|
||||||
name: Upload to PyPI (test)
|
name: Upload to PyPI (test)
|
||||||
needs: [build_wheels, build_sdist]
|
needs: [build_wheels, build_sdist]
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
if: github.repository == 'tornadoweb/tornado' && github.event_name == 'push' && startsWith(github.ref_name, 'build-workflow')
|
if: github.repository == 'tornadoweb/tornado' && github.event_name == 'workflow_dispatch'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue