Skip to content

Commit

Permalink
chore: another try #11
Browse files Browse the repository at this point in the history
Signed-off-by: Yurii Shynbuiev <[email protected]>
  • Loading branch information
yshyn-iohk committed Aug 16, 2024
1 parent 56ae760 commit 9a3ae2d
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/release-clients.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,23 @@ jobs:
working-directory: cloud-agent/client/generator
run: yarn generate:all

- name: Set version for clients
run: |
if [ -z "${{ github.event.inputs.releaseTag }}" ]; then
echo "VERSION_TAG=cloud-agent-v${{ inputs.revision }}" >> $GITHUB_ENV
else
echo "VERSION_TAG=${{ github.event.inputs.releaseTag }}" >> $GITHUB_ENV
fi
- name: Publish clients
working-directory: cloud-agent/client/generator
env:
VERSION_TAG: ${{ env.VERSION_TAG }}
run: |
if [ -z "${{ github.event.inputs.releaseTag }}" ]; then
echo "Using revision version for publishing: ${{ inputs.revision }}"
VERSION_TAG=cloud-agent-v${{ inputs.revision }}
yarn publish:clients --new-version ${{ inputs.revision }}
echo "Using revision version for publishing: ${VERSION_TAG}"
yarn publish:clients
else
echo "Using release tag for publishing: ${{ github.event.inputs.releaseTag }}"
VERSION_TAG=${{ github.event.inputs.releaseTag }}
yarn publish:clients --new-version ${{ github.event.inputs.releaseTag }}
echo "Using release tag for publishing: ${VERSION_TAG}"
yarn publish:clients
fi

0 comments on commit 9a3ae2d

Please sign in to comment.