-
-
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.
- Loading branch information
Showing
2 changed files
with
12 additions
and
5 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 |
---|---|---|
|
@@ -13,13 +13,18 @@ jobs: | |
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get previous tag | ||
id: previoustag | ||
uses: "WyriHaximus/github-action-get-previous-tag@v1" | ||
|
||
- name: Create release package branch | ||
run: | | ||
git branch -d upm &> /dev/null || echo upm branch not found | ||
git subtree split -P "$PKG_ROOT" -b upm | ||
git branch -d package &> /dev/null || echo package branch not found | ||
git subtree split -P "$PKG_ROOT" -b package | ||
mv "Assets/Samples" /tmp/example | ||
mv README.md /tmp/README.md | ||
git checkout upm | ||
git checkout package | ||
mkdir "Samples~" | ||
mv /tmp/README.md README.md | ||
git add README.md | ||
|
@@ -28,6 +33,8 @@ jobs: | |
git config --global user.name 'github-bot' | ||
git config --global user.email '[email protected]' | ||
git commit -am "Packaged project" | ||
git push -f -u origin upm | ||
git push -f -u origin package | ||
git tag -a ${{ steps.previoustag.outputs.tag }}-upm -m "${{ steps.previoustag.outputs.tag }}" | ||
git push origin ${{ steps.previoustag.outputs.tag }}-upm | ||
env: | ||
PKG_ROOT: "Packages/se.hertzole.settings-manager" |
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