Skip to content

Commit

Permalink
Publish to upm branch instead and include readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Hertzole committed Jun 13, 2022
1 parent dca9ade commit 8fd17e9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/dev-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ jobs:
git branch -d dev-package &> /dev/null || echo dev-package branch not found
git subtree split -P "$PKG_ROOT" -b dev-package
mv "Assets/Samples" /tmp/example
mv README.md /tmp/README.md
git checkout dev-package
mkdir "Samples~"
mv /tmp/README.md README.md
git add README.md
mv /tmp/example/* "Samples~/"
git add "Samples~"
git config --global user.name 'github-bot'
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@ jobs:
fetch-depth: 0
- name: Create release package branch
run: |
git branch -d package &> /dev/null || echo package branch not found
git subtree split -P "$PKG_ROOT" -b package
git branch -d upm &> /dev/null || echo upm branch not found
git subtree split -P "$PKG_ROOT" -b upm
mv "Assets/Samples" /tmp/example
git checkout package
mv README.md /tmp/README.md
git checkout upm
mkdir "Samples~"
mv /tmp/README.md README.md
git add README.md
mv /tmp/example/* "Samples~/"
git add "Samples~"
git config --global user.name 'github-bot'
git config --global user.email '[email protected]'
git commit -am "Packaged project"
git push -f -u origin package
git push -f -u origin upm
env:
PKG_ROOT: "Packages/se.hertzole.settings-manager"
4 changes: 2 additions & 2 deletions Packages/se.hertzole.settings-manager/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "se.hertzole.settingsmanager",
"version": "0.1.0-preview",
"version": "0.1.1-preview",
"displayName": "Settings Manager",
"description": "Settings package",
"unity": "2020.3",
"unity": "2021.3",
"unityRelease": "0f1",
"dependencies": {
"com.unity.modules.audio": "1.0.0",
Expand Down

0 comments on commit 8fd17e9

Please sign in to comment.