-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from SideQuestVR/dev
merge dev to test ci
- Loading branch information
Showing
5 changed files
with
52 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,24 +19,36 @@ jobs: | |
TAG=$(jq -r '.version' package.json) | ||
echo "TAG=$TAG" >> $GITHUB_ENV | ||
if git rev-parse $TAG >/dev/null 2>&1; then | ||
echo "TAG_EXISTS=true" >> $GITHUB_ENV | ||
echo "::error::Tag already exists: $TAG" | ||
exit 1 | ||
else | ||
echo "TAG_EXISTS=false" >> $GITHUB_ENV | ||
fi | ||
- name: Samples to Samples~ | ||
- name: Publish on UPM branch | ||
run: | | ||
if [[ -d "Samples" ]]; then | ||
git mv Samples Samples~ | ||
rm -f Samples.meta | ||
git config --global user.name 'github-bot' | ||
git config --global user.email '[email protected]' | ||
git commit -am "fix: Samples => Samples~" | ||
git push -u origin main | ||
fi | ||
mkdir ../upm | ||
cp -r . ../upm | ||
rm -rf ../upm/.git # don't want to replace git history! | ||
git reset --hard HEAD | ||
git checkout upm | ||
cp -r ../upm/* . | ||
rm -rf ../upm | ||
git config --global user.name 'github-bot' | ||
git config --global user.email '[email protected]' | ||
git commit -am "$TAG" --no-verify | ||
git push -u origin upm | ||
- name: Create Release | ||
if: env.TAG_EXISTS == 'false' | ||
run: | | ||
git tag ${{ env.TAG }} main | ||
git tag ${{ env.TAG }} upm | ||
git push origin --tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters