From a6bb2482ba71812935130ffac0bdec44f8de4a33 Mon Sep 17 00:00:00 2001 From: Hertzole Date: Mon, 13 Jun 2022 20:32:21 +0200 Subject: [PATCH] New attempt to fix OpenUPM --- .github/workflows/package.yml | 15 +++++++++++---- .../se.hertzole.settings-manager/package.json | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 6c9b99c..8f0b38d 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -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 'github-bot@users.noreply.github.com' 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" diff --git a/Packages/se.hertzole.settings-manager/package.json b/Packages/se.hertzole.settings-manager/package.json index 07b45a5..c7e6531 100644 --- a/Packages/se.hertzole.settings-manager/package.json +++ b/Packages/se.hertzole.settings-manager/package.json @@ -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",