Skip to content

Commit

Permalink
Trigger release workflow on tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed May 21, 2024
1 parent ba30a38 commit 6bf7276
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Release
# TODO: trigger this via Jenkins somehow?

on:
push:
tags: 'v[0-9]+.[0-9]+.[0-9]+*'
workflow_dispatch:
inputs:
publish-docs:
Expand Down Expand Up @@ -30,12 +32,12 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
python-version: 3.11
deploy-pages: ${{ inputs.publish-docs && !inputs.dry-run }}
deploy-pages: ${{ github.event_name == 'push' || inputs.publish-docs && !inputs.dry-run }}
release: true

publish-docs:
needs: build-docs
if: inputs.publish-docs && !inputs.dry-run
if: github.event_name == 'push' || inputs.publish-docs && !inputs.dry-run
runs-on: ubuntu-latest
environment:
name: pypi
Expand Down

0 comments on commit 6bf7276

Please sign in to comment.