Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sp 16071 #175

Merged
merged 12 commits into from
Jul 4, 2024
Merged
7 changes: 7 additions & 0 deletions .github/workflows/release-clients.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ jobs:
gh release create v${{github.event.inputs.version}} ${{github.event.inputs.options}} --title ${{github.event.inputs.version}} --repo regulaforensics/DocumentReader-web-csharp-client
env:
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
event-type: release-web-page
client-payload: '{"version": "${{github.event.inputs.version}}", "success": true}'
if: ${{ success() }}
24 changes: 20 additions & 4 deletions .github/workflows/release-web-page.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
name: release web page

on:
push:
branches:
- master
repository_dispatch:
types: [release-web-page]


jobs:
build-and-push:
if: ${{ github.event.client_payload.success }}
runs-on: ubuntu-20.04
steps:
- name: Checkout Specifications
uses: actions/checkout@v2
with:
path: 'master-branch'

- name: Install yq
uses: vegardit/gha-setup-yq@v1
with:
version: 4.44.2

- name: Replace index.yml version
run: yq -i ".info.version =\"${{ github.event.client_payload.version }}\"" index.yml

- name: Install redoc-cli
uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -46,4 +56,10 @@ jobs:
git commit -m "update pages"
git push origin gh-pages
env:
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}

- name: Pushing tag to Repo
uses: thejeff77/action-push-tag@v1.0.0
with:
tag: v${{ github.event.client_payload.version }}
if: ${{ success() }}
Loading