Skip to content

Commit

Permalink
Merge pull request #3262 from bdarnell/build-dispatch
Browse files Browse the repository at this point in the history
ci: Enable manual dispatch for build workflow
  • Loading branch information
bdarnell committed May 2, 2023
2 parents d714643 + 012499d commit c11a6ee
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ name: Build
on:
push:
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]*"
# Also run on certain other branches for testing.
- "build-workflow*"
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*"
workflow_dispatch:
# Allow this workflow to be run manually (pushing to testpypi instead of pypi)

env:
python-version: '3.9'
Expand Down Expand Up @@ -68,7 +71,7 @@ jobs:
name: Upload to PyPI (test)
needs: [build_wheels, build_sdist]
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:
- uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit c11a6ee

Please sign in to comment.