Skip to content

Commit

Permalink
chore: allow publishing production docs from master
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela committed Jul 10, 2024
1 parent 739b4d4 commit 92fea89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
docs_release:
name: Publish documentation from "${{ github.ref_name }}" branch to ${{ inputs.docs_env }}
runs-on: ubuntu-latest
# skip during dry runs, publish to production only from branches with names starting with "release", publish to staging from anywhere
if: ${{ !inputs.dry_run && ((startsWith(github.ref_name, 'release') && inputs.docs_env == 'production') || inputs.docs_env == 'staging') }}
# skip during dry runs, publish to production only from master or branches with names starting with "release", publish to staging from anywhere
if: ${{ !inputs.dry_run && (((github.ref_name == 'master' || startsWith(github.ref_name, 'release')) && inputs.docs_env == 'production') || inputs.docs_env == 'staging') }}
outputs:
target-version: $${{ steps.target-version.outputs }}
steps:
Expand Down

0 comments on commit 92fea89

Please sign in to comment.