Skip to content

Commit cdb856f

Browse files
committed
Update CI workflow conditions for release steps
Signed-off-by: Victor Chang <[email protected]>
1 parent b757545 commit cdb856f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ jobs:
567567
run: gpr push '${{ steps.download.outputs.download-path }}/nuget/*.nupkg' --repository ${{ github.repository }} -k ${{ secrets.GITHUB_TOKEN }}
568568

569569
release:
570-
if: ${{ contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/heads/develop') ||contains(github.head_ref, 'release/') || contains(github.head_ref, 'feature/') || contains(github.head_ref, 'develop') }}
570+
if: ${{ inputs.ga == 'true' }}
571571
runs-on: ubuntu-latest
572572
needs: [calc-version, unit-test, docs, integration-test, analyze]
573573
env:
@@ -610,15 +610,13 @@ jobs:
610610
msg: ${{ github.repository }}
611611

612612
- name: Unzip docs
613-
if: ${{ inputs.ga == 'true' }}
614613
run: |
615614
mkdir userguide
616615
unzip artifacts-docs/mig-docs-${{ env.SEMVER }}.zip -d userguide/
617616
ls -lR userguide/
618617
619618
- name: Deploy Docs
620619
uses: peaceiris/actions-gh-pages@v3
621-
if: ${{ inputs.ga == 'true' }}
622620
with:
623621
github_token: ${{ secrets.GITHUB_TOKEN }}
624622
publish_dir: userguide/
@@ -643,7 +641,6 @@ jobs:
643641
644642
- name: Publish release with GitReleaseManager
645643
uses: gittools/actions/gitreleasemanager/[email protected]
646-
if: ${{ inputs.ga == 'true' }}
647644
with:
648645
token: ${{ secrets.GITHUB_TOKEN }}
649646
owner: ${{ steps.repo.outputs._0 }}
@@ -652,7 +649,6 @@ jobs:
652649

653650
- name: Close release with GitReleaseManager
654651
uses: gittools/actions/gitreleasemanager/[email protected]
655-
if: ${{ inputs.ga == 'true' }}
656652
with:
657653
token: ${{ secrets.GITHUB_TOKEN }}
658654
owner: ${{ steps.repo.outputs._0 }}

0 commit comments

Comments
 (0)