File tree Expand file tree Collapse file tree 2 files changed +27
-4
lines changed
Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change 2424 gh release create v${{github.event.inputs.version}} ${{github.event.inputs.options}} --title ${{github.event.inputs.version}} --repo regulaforensics/DocumentReader-web-csharp-client
2525 env :
2626 GITHUB_TOKEN : ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
27+
28+ - name : Repository Dispatch
29+ uses : peter-evans/repository-dispatch@v3
30+ with :
31+ event-type : release-web-page
32+ client-payload : ' {"version": "${{github.event.inputs.version}}", "success": true}'
33+ if : ${{ success() }}
Original file line number Diff line number Diff line change 11name : release web page
22
33on :
4- push :
5- branches :
6- - master
4+ repository_dispatch :
5+ types : [release-web-page]
6+
77
88jobs :
99 build-and-push :
10+ if : ${{ github.event.client_payload.success }}
1011 runs-on : ubuntu-20.04
1112 steps :
1213 - name : Checkout Specifications
1314 uses : actions/checkout@v2
1415 with :
1516 path : ' master-branch'
17+
18+ - name : Install yq
19+ uses : vegardit/gha-setup-yq@v1
20+ with :
21+ version : 4.44.2
22+
23+ - name : Replace index.yml version
24+ run : yq -i ".info.version =\"${{ github.event.client_payload.version }}\"" index.yml
25+
1626 - name : Install redoc-cli
1727 uses : actions/setup-node@v1
1828 with :
4656 git commit -m "update pages"
4757 git push origin gh-pages
4858 env :
49- GITHUB_TOKEN : ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
59+ GITHUB_TOKEN : ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
60+
61+ - name : Pushing tag to Repo
62+ uses : thejeff77/action-push-tag@v1.0.0
63+ with :
64+ tag : v${{ github.event.client_payload.version }}
65+ if : ${{ success() }}
You can’t perform that action at this time.
0 commit comments