@@ -567,7 +567,7 @@ jobs:
567
567
run : gpr push '${{ steps.download.outputs.download-path }}/nuget/*.nupkg' --repository ${{ github.repository }} -k ${{ secrets.GITHUB_TOKEN }}
568
568
569
569
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' }}
571
571
runs-on : ubuntu-latest
572
572
needs : [calc-version, unit-test, docs, integration-test, analyze]
573
573
env :
@@ -610,15 +610,13 @@ jobs:
610
610
msg : ${{ github.repository }}
611
611
612
612
- name : Unzip docs
613
- if : ${{ inputs.ga == 'true' }}
614
613
run : |
615
614
mkdir userguide
616
615
unzip artifacts-docs/mig-docs-${{ env.SEMVER }}.zip -d userguide/
617
616
ls -lR userguide/
618
617
619
618
- name : Deploy Docs
620
619
uses : peaceiris/actions-gh-pages@v3
621
- if : ${{ inputs.ga == 'true' }}
622
620
with :
623
621
github_token : ${{ secrets.GITHUB_TOKEN }}
624
622
publish_dir : userguide/
@@ -643,7 +641,6 @@ jobs:
643
641
644
642
- name : Publish release with GitReleaseManager
645
643
uses :
gittools/actions/gitreleasemanager/[email protected]
646
- if : ${{ inputs.ga == 'true' }}
647
644
with :
648
645
token : ${{ secrets.GITHUB_TOKEN }}
649
646
owner : ${{ steps.repo.outputs._0 }}
@@ -652,7 +649,6 @@ jobs:
652
649
653
650
- name : Close release with GitReleaseManager
654
651
uses :
gittools/actions/gitreleasemanager/[email protected]
655
- if : ${{ inputs.ga == 'true' }}
656
652
with :
657
653
token : ${{ secrets.GITHUB_TOKEN }}
658
654
owner : ${{ steps.repo.outputs._0 }}
0 commit comments