Skip to content

Commit

Permalink
fix: failed to create new release and github releases requires a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ImmutableJeffrey committed Feb 7, 2025
1 parent 04b3faa commit 7bbc509
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,25 @@
name: 'Create Release'

on:
workflow_dispatch:
workflow_run:
workflows: ["Tag Release"]
types:
- completed

jobs:
release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3


- name: Get the latest tag
run: |
git fetch --tags
LATEST_TAG="$(git describe --tags "$(git rev-list --tags --max-count=1)")"
echo "LATEST_TAG=${LATEST_TAG}" >> "$GITHUB_ENV"
- name: Extract TS SDK version from index.js
id: extract_ts_sdk_version
run: |
Expand All @@ -28,7 +34,7 @@ jobs:
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 @@ -52,9 +58,8 @@ jobs:
- name: Create Release
uses: mikepenz/action-gh-release@v0.2.0-a03
with:
tag_name: ${{ env.LATEST_TAG }}
body: |
${{steps.github_release.outputs.changelog}}
Game bridge built from Immutable Typescript SDK version ${{ env.VERSION }}
Game bridge built from Immutable Typescript SDK version ${{ env.VERSION }}

0 comments on commit 7bbc509

Please sign in to comment.