Skip to content

Commit

Permalink
Improve release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunderscore committed May 2, 2022
1 parent 9e1e670 commit 8cb1938
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
cp LICENSE.txt Assets/bd_/AttachToMe/LICENSE.txt
mkdir output
cp LICENSE.txt output
- name: Set version based on tag
id: version
if: startsWith(github.event.ref, 'refs/tags/')
run: |
VERSION=${GITHUB_REF/refs\/tags\//}
echo ::set-output name=version::$VERSION
sed -i -e "s/SNAPSHOT/$VERSION/" Assets/bd_/AttachToMe/Scripts/AttachableVersion.cs
- name: Build unitypackage
uses: pCYSl5EDgo/create-unitypackage@2f4ac82dabd3a1029f7a6771f30dc796e4217551
with:
Expand All @@ -27,11 +34,6 @@ jobs:
with:
path: output
name: AttachToMe-dev
- name: Set version based on tag
id: version
if: startsWith(github.event.ref, 'refs/tags/')
run: |
echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
- name: Rename and zip artifacts
if: startsWith(github.event.ref, 'refs/tags/')
run: |
Expand Down
2 changes: 1 addition & 1 deletion Assets/bd_/AttachToMe/Scripts/AttachableVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace net.fushizen.attachable

public class AttachableVersion : UdonSharpBehaviour
{
readonly string VERSION = "AttachToMe v1.1.2";
readonly string VERSION = "AttachToMe vSNAPSHOT";
#if !COMPILER_UDONSHARP && UNITY_EDITOR
public static readonly bool IS_USHARP_10;

Expand Down

0 comments on commit 8cb1938

Please sign in to comment.