Skip to content

Commit

Permalink
ci: update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 authored Jul 26, 2024
1 parent da49d22 commit 4dea2d0
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Extract TS SDK version from index.html
id: extract_ts_sdk_version
run: |
version=$(grep -oP '"x-sdk-version":"ts-immutable-sdk-\K[0-9]+\.[0-9]+\.[0-9]+' ./Web/index.js | head -n 1)
if [[ -z "$version" ]]; then
echo "Error: Version not found in index.js" >&2
exit 1
fi
version=$(echo "$version" | tr -d '\r\n')
echo "VERSION=${version}" >> "$GITHUB_ENV"
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v3
Expand All @@ -33,6 +50,9 @@ jobs:
- name: Create Release
uses: mikepenz/[email protected]
with:
body: ${{steps.github_release.outputs.changelog}}
body: |
${{steps.github_release.outputs.changelog}}
Game bridge built from Immutable Typescript SDK version ${{ env.VERSION }}

0 comments on commit 4dea2d0

Please sign in to comment.