From 8fd17e9462128be14cfb94e52ce8a431f2e4faaa Mon Sep 17 00:00:00 2001 From: Hertzole Date: Mon, 13 Jun 2022 20:05:42 +0200 Subject: [PATCH] Publish to upm branch instead and include readme --- .github/workflows/dev-package.yml | 3 +++ .github/workflows/package.yml | 11 +++++++---- Packages/se.hertzole.settings-manager/package.json | 4 ++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dev-package.yml b/.github/workflows/dev-package.yml index 17b99ed..4812d59 100644 --- a/.github/workflows/dev-package.yml +++ b/.github/workflows/dev-package.yml @@ -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' diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 2f9eb19..6c9b99c 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -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 'github-bot@users.noreply.github.com' 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" diff --git a/Packages/se.hertzole.settings-manager/package.json b/Packages/se.hertzole.settings-manager/package.json index 85d75b4..07b45a5 100644 --- a/Packages/se.hertzole.settings-manager/package.json +++ b/Packages/se.hertzole.settings-manager/package.json @@ -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",