23
23
24
24
# Allows you to run this workflow manually from the Actions tab
25
25
workflow_dispatch :
26
+ inputs :
27
+ ga :
28
+ description : ' GA (Official) Build'
29
+ required : true
30
+ type : boolean
31
+ default : false
26
32
27
33
env :
28
34
REGISTRY : ghcr.io
@@ -604,15 +610,15 @@ jobs:
604
610
msg : ${{ github.repository }}
605
611
606
612
- name : Unzip docs
607
- if : ${{ contains(github.ref, 'refs/heads/main') }}
613
+ if : ${{ inputs.ga == 'true' }}
608
614
run : |
609
615
mkdir userguide
610
616
unzip artifacts-docs/mig-docs-${{ env.SEMVER }}.zip -d userguide/
611
617
ls -lR userguide/
612
618
613
619
- name : Deploy Docs
614
620
uses : peaceiris/actions-gh-pages@v3
615
- if : ${{ contains(github.ref, 'refs/heads/main') }}
621
+ if : ${{ inputs.ga == 'true' }}
616
622
with :
617
623
github_token : ${{ secrets.GITHUB_TOKEN }}
618
624
publish_dir : userguide/
@@ -637,7 +643,7 @@ jobs:
637
643
638
644
- name : Publish release with GitReleaseManager
639
645
uses :
gittools/actions/gitreleasemanager/[email protected]
640
- if : ${{ contains(github.ref, 'refs/heads/main') }}
646
+ if : ${{ inputs.ga == 'true' }}
641
647
with :
642
648
token : ${{ secrets.GITHUB_TOKEN }}
643
649
owner : ${{ steps.repo.outputs._0 }}
@@ -646,7 +652,7 @@ jobs:
646
652
647
653
- name : Close release with GitReleaseManager
648
654
uses :
gittools/actions/gitreleasemanager/[email protected]
649
- if : ${{ contains(github.ref, 'refs/heads/main') }}
655
+ if : ${{ inputs.ga == 'true' }}
650
656
with :
651
657
token : ${{ secrets.GITHUB_TOKEN }}
652
658
owner : ${{ steps.repo.outputs._0 }}
0 commit comments