Skip to content

Commit f693da4

Browse files
Merge pull request #175 from regulaforensics/SP-16071
Sp 16071
2 parents b8ae2ad + f814fcc commit f693da4

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

.github/workflows/release-clients.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,10 @@ jobs:
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() }}

.github/workflows/release-web-page.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
name: release web page
22

33
on:
4-
push:
5-
branches:
6-
- master
4+
repository_dispatch:
5+
types: [release-web-page]
6+
77

88
jobs:
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:
@@ -46,4 +56,10 @@ jobs:
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() }}

0 commit comments

Comments
 (0)