Skip to content

Commit

Permalink
chore: allow forcing the pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
sxlijin committed Dec 5, 2024
1 parent a37d486 commit aaa6614
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
name: BAML Release

on:
workflow_dispatch: {}
workflow_dispatch:
inputs:
publish-to-pypi:
description: "Publish to PyPI"
required: false
publish-to-npm:
description: "Publish to NPM"
required: false
publish-to-rubygems:
description: "Publish to RubyGems"
required: false
# need to run this periodically on the default branch to populate the build cache
schedule:
# daily at 2am PST
Expand Down Expand Up @@ -112,7 +122,7 @@ jobs:

publish-to-pypi:
environment: release
if: github.ref_type == 'tag'
if: github.ref_type == 'tag' || github.event.inputs.publish-to-pypi == 'true'
needs: [assert-all-builds-passed]
runs-on: ubuntu-latest
steps:
Expand All @@ -133,7 +143,7 @@ jobs:

publish-to-npm:
environment: release
if: github.ref_type == 'tag'
if: github.ref_type == 'tag' || github.event.inputs.publish-to-npm == 'true'
needs: [assert-all-builds-passed]
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -184,7 +194,7 @@ jobs:

publish-to-rubygems:
environment: release
if: github.ref_type == 'tag'
if: github.ref_type == 'tag' || github.event.inputs.publish-to-rubygems == 'true'
needs: [assert-all-builds-passed]
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit aaa6614

Please sign in to comment.