Skip to content

Commit b5d8023

Browse files
committed
fix: update pipeline
1 parent 3263b18 commit b5d8023

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

.github/workflows/release-template.yml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -80,32 +80,13 @@ jobs:
8080
jq '.version = "${{ env.releaseVersion }}"' $PACKAGE_PATH/package.json > package.json.tmp && mv package.json.tmp $PACKAGE_PATH/package.json
8181
git commit --amend -a --no-edit
8282
83-
- name: 📦 Package UPM Branch
84-
id: package_upm
85-
run: |
86-
git branch -d upm &> /dev/null || echo upm branch not found
87-
git subtree split -P "$PACKAGE_PATH" -b upm
88-
git checkout upm
89-
9083
- name: 🔄 Rename Samples Folder
9184
run: |
9285
if [[ -d "$PACKAGE_PATH/Samples" ]]; then
9386
mv "$PACKAGE_PATH/Samples" "$PACKAGE_PATH/Samples~"
9487
rm -f "$PACKAGE_PATH/Samples.meta"
95-
git commit --amend -a --no-edit
9688
fi
9789
98-
- name: 🚀 Push UPM Branch
99-
run: |
100-
git push -f -u origin upm
101-
102-
- name: 🏷️ Create UPM Tag
103-
run: |
104-
git tag $TAG upm
105-
git push origin --tags
106-
env:
107-
TAG: upm/${{ env.releaseVersion }}
108-
10990
- name: 🗃️ Cache Library
11091
uses: actions/cache@v4
11192
with:
@@ -126,4 +107,20 @@ jobs:
126107
uses: actions/upload-artifact@v4
127108
with:
128109
name: com.mygamedevtools.scene-loader-${{ env.releaseVersion }}
129-
path: com.mygamedevtools.scene-loader.unitypackage
110+
path: com.mygamedevtools.scene-loader.unitypackage
111+
112+
- name: 📦 Package UPM Branch
113+
id: package_upm
114+
run: |
115+
git branch -d upm &> /dev/null || echo upm branch not found
116+
git subtree split -P "$PACKAGE_PATH" -b upm
117+
git checkout upm
118+
git commit --amend -a --no-edit
119+
git push -f -u origin upm
120+
121+
- name: 🏷️ Create UPM Tag
122+
run: |
123+
git tag $TAG upm
124+
git push origin --tags
125+
env:
126+
TAG: upm/${{ env.releaseVersion }}

0 commit comments

Comments
 (0)