Skip to content

Commit

Permalink
New attempt to fix OpenUPM
Browse files Browse the repository at this point in the history
  • Loading branch information
Hertzole committed Jun 13, 2022
1 parent 2dc682c commit a6bb248
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
2 changes: 1 addition & 1 deletion Packages/se.hertzole.settings-manager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "se.hertzole.settingsmanager",
"version": "0.1.1-preview",
"version": "0.1.2-preview",
"displayName": "Settings Manager",
"description": "Settings package",
"unity": "2021.3",
Expand Down

0 comments on commit a6bb248

Please sign in to comment.