Skip to content

Commit

Permalink
Allow docs workflow to be executed separately from the release one (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev authored Nov 13, 2023
1 parent 43dd2d4 commit 99f83d2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
name: Publish Release
"on": workflow_dispatch
"on":
workflow_dispatch:
inputs:
docs-only:
description: Indicates whether to only publish the docs without doing an actual release.
required: false
type: boolean
jobs:
main:
runs-on: windows-latest
environment: Production
if: ${{ !github.event.inputs.docs-only }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -91,6 +98,7 @@ jobs:
id-token: write
runs-on: ubuntu-latest
needs: [ main ]
if: always() && !cancelled() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit 99f83d2

Please sign in to comment.