Skip to content

Commit

Permalink
Add short hash to the version
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklul committed Jun 5, 2024
1 parent 53fb626 commit 6af4341
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
- run: |
echo "branch-$GITHUB_REF_NAME" > "Assets/${{ env.ASSETS_FOLDER }}/version.txt"
sed -i -e "s/(dev version)/branch-$GITHUB_REF_NAME/g" "Assets/${{ env.ASSETS_FOLDER }}/Subtitles.prefab"
VERSION=$GITHUB_REF_NAME-$(git rev-parse --short "$GITHUB_SHA")
echo "$VERSION" > "Assets/${{ env.ASSETS_FOLDER }}/version.txt"
sed -i -e "s/(dev version)/$VERSION/g" "Assets/${{ env.ASSETS_FOLDER }}/Subtitles.prefab"
if: startsWith(github.ref, 'refs/heads/')
- uses: pCYSl5EDgo/create-unitypackage@v1
Expand Down

0 comments on commit 6af4341

Please sign in to comment.