Skip to content

Commit

Permalink
fix(XiDebugMenu): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hww committed Oct 7, 2021
1 parent 3dc2f7d commit 3c129cb
Show file tree
Hide file tree
Showing 23 changed files with 2,174 additions and 0 deletions.
86 changes: 86 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: ⚙ Build and Release
on:
push:
branches:
- master
jobs:
release:
name: ⚙ Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build unitypackage
run: |
echo Assets/XiDebugMenu.meta >> metaList
find Assets/XiDebugMenu -name \*.meta >> metaList
- uses: pCYSl5EDgo/create-unitypackage@master
with:
package-path: XiDebugMenu.unitypackage
include-files: metaList
project-folder: ./
- name: Semantic release
id: semantic
uses: cycjimmy/semantic-release-action@v2
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
branch: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update upm branch
run: |
echo '>>> Start'
git log -1
mkdir Temp
cp README.md Temp/README.md
cp CHANGELOG.md Temp/CHANGELOG.md
cp LICENSE Temp/LICENSE
echo '>>> Delete local upm branch'
git branch -d upm &> /dev/null || echo upm branch not found
echo
echo '>>> Split upm branch'
git subtree split -P "$PKG_ROOT" -b upm
echo
echo '>>> Checkout upm branch'
git checkout upm
cp Temp/README.md README.md
git add README.md
cp Temp/CHANGELOG.md CHANGELOG.md
git add CHANGELOG.md
cp Temp/LICENSE LICENSE
git add LICENSE
if [[ -d "Examples" ]]; then
echo
echo '>>> Examples move to Examples~'
git mv Examples Examples~
rm -f Examples.meta
fi
git config --global user.name 'github-bot'
git config --global user.email 'github-bot@users.noreply.github.com'
git commit -am "$MSG"
echo
echo '>>> Force overwrite remote upm branch'
git push -f -u origin upm
env:
PKG_ROOT: Assets/XiDebugMenu
MSG: "chore(release): finalize UPM package"
- name: Create upm git tag
if: steps.semantic.outputs.new_release_published == 'true'
run: |
git tag $TAG upm
git push origin --tags
env:
TAG: upm/v${{ steps.semantic.outputs.new_release_version }}
44 changes: 44 additions & 0 deletions Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"dependencies": {
"com.unity.collab-proxy": "1.7.1",
"com.unity.ide.rider": "3.0.7",
"com.unity.ide.visualstudio": "2.0.9",
"com.unity.ide.vscode": "1.2.3",
"com.unity.test-framework": "1.1.27",
"com.unity.textmeshpro": "3.0.6",
"com.unity.timeline": "1.5.6",
"com.unity.ugui": "1.0.0",
"com.unity.visualscripting": "1.6.1",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.assetbundle": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.cloth": "1.0.0",
"com.unity.modules.director": "1.0.0",
"com.unity.modules.imageconversion": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.particlesystem": "1.0.0",
"com.unity.modules.physics": "1.0.0",
"com.unity.modules.physics2d": "1.0.0",
"com.unity.modules.screencapture": "1.0.0",
"com.unity.modules.terrain": "1.0.0",
"com.unity.modules.terrainphysics": "1.0.0",
"com.unity.modules.tilemap": "1.0.0",
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.uielements": "1.0.0",
"com.unity.modules.umbra": "1.0.0",
"com.unity.modules.unityanalytics": "1.0.0",
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.unitywebrequestassetbundle": "1.0.0",
"com.unity.modules.unitywebrequestaudio": "1.0.0",
"com.unity.modules.unitywebrequesttexture": "1.0.0",
"com.unity.modules.unitywebrequestwww": "1.0.0",
"com.unity.modules.vehicles": "1.0.0",
"com.unity.modules.video": "1.0.0",
"com.unity.modules.vr": "1.0.0",
"com.unity.modules.wind": "1.0.0",
"com.unity.modules.xr": "1.0.0"
}
}
Loading

0 comments on commit 3c129cb

Please sign in to comment.