Skip to content

Commit 5d23cea

Browse files
authored
Merge pull request #7 from Miner28/VPM
Migrate to VPM
2 parents d423eac + 7f33066 commit 5d23cea

12 files changed

Lines changed: 1391 additions & 10 deletions

File tree

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Build Repo Listing
2+
3+
env:
4+
CurrentPackageName: com.bocud.vrcapitools
5+
listPublishDirectory: Website
6+
pathToCi: ci
7+
8+
on:
9+
workflow_dispatch:
10+
workflow_run:
11+
workflows: [Build Release]
12+
types:
13+
- completed
14+
release:
15+
types: [published, created, edited, unpublished, deleted, released]
16+
17+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18+
permissions:
19+
contents: read
20+
pages: write
21+
id-token: write
22+
23+
# Allow one concurrent deployment
24+
concurrency:
25+
group: "pages"
26+
cancel-in-progress: true
27+
28+
jobs:
29+
30+
build-listing:
31+
name: build-listing
32+
environment:
33+
name: github-pages
34+
url: ${{ steps.deployment.outputs.page_url }}
35+
runs-on: ubuntu-latest
36+
steps:
37+
38+
- uses: actions/checkout@v3 # check out this repo
39+
- uses: actions/checkout@v3 # check out automation repo
40+
with:
41+
repository: vrchat-community/package-list-action
42+
path: ${{env.pathToCi}}
43+
clean: false # otherwise the local repo will no longer be checked out
44+
45+
- name: Restore Cache
46+
uses: actions/cache@v3
47+
with:
48+
path: |
49+
${{env.pathToCi}}/.nuke/temp
50+
~/.nuget/packages
51+
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
52+
53+
- name: Build Package Version Listing
54+
run: ${{env.pathToCi}}/build.cmd BuildRepoListing --root ${{env.pathToCi}} --list-publish-directory $GITHUB_WORKSPACE/${{env.listPublishDirectory}} --current-package-name ${{env.CurrentPackageName}}
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
58+
- name: Setup Pages
59+
uses: actions/configure-pages@v3
60+
61+
- name: Upload artifact
62+
uses: actions/upload-pages-artifact@v1
63+
with:
64+
path: ${{env.listPublishDirectory}}
65+
66+
- name: Deploy to GitHub Pages
67+
id: deployment
68+
uses: actions/deploy-pages@v2

.github/workflows/release.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
packageName: "com.bocud.vrcapitools"
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
20+
- name: get version
21+
id: version
22+
uses: notiz-dev/github-action-json-property@7c8cf5cc36eb85d8d287a8086a39dac59628eb31
23+
with:
24+
path: "Packages/${{env.packageName}}/package.json"
25+
prop_path: "version"
26+
27+
- name: Set Environment Variables
28+
run: |
29+
echo "zipFile=${{ env.packageName }}-${{ steps.version.outputs.prop }}".zip >> $GITHUB_ENV
30+
echo "unityPackage=${{ env.packageName }}-${{ steps.version.outputs.prop }}.unitypackage" >> $GITHUB_ENV
31+
32+
- name: Create Zip
33+
uses: thedoctor0/zip-release@09336613be18a8208dfa66bd57efafd9e2685657
34+
with:
35+
type: "zip"
36+
directory: "Packages/${{env.packageName}}/"
37+
filename: "../../${{env.zipFile}}" # make the zip file two directories up, since we start two directories in above
38+
39+
- run: find "Packages/${{env.packageName}}/" -name \*.meta >> metaList
40+
41+
- name: Create UnityPackage
42+
uses: pCYSl5EDgo/create-unitypackage@cfcd3cf0391a5ef1306342794866a9897c32af0b
43+
with:
44+
package-path: ${{ env.unityPackage }}
45+
include-files: metaList
46+
47+
48+
- name: Make Release
49+
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
50+
with:
51+
tag_name: ${{ steps.version.outputs.prop }}
52+
files: |
53+
${{ env.zipFile }}
54+
${{ env.unityPackage }}
55+
Packages/${{ env.packageName }}/package.json

.gitignore

Lines changed: 64 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,64 @@
1-
/*
2-
!/.git
3-
!/.github
4-
!/.gitignore
5-
!/.LICENCE
6-
!/.README.md
7-
!/Packages
8-
/Packages/*
9-
!/Packages/com.BocuD.vrcapitools
10-
/Packages/com.vrchat.core.vpm-resolver/*
1+
# This .gitignore file should be placed at the root of your Unity project directory
2+
#
3+
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
4+
#
5+
/[Ll]ibrary/
6+
/[Tt]emp/
7+
/[Oo]bj/
8+
/[Bb]uild/
9+
/[Bb]uilds/
10+
/[Ll]ogs/
11+
/[Mm]emoryCaptures/
12+
13+
# Asset meta data should only be ignored when the corresponding asset is also ignored
14+
!/[Aa]ssets/**/*.meta
15+
16+
# Uncomment this line if you wish to ignore the asset store tools plugin
17+
# /[Aa]ssets/AssetStoreTools*
18+
19+
# Autogenerated Jetbrains Rider plugin
20+
[Aa]ssets/Plugins/Editor/JetBrains*
21+
22+
# Visual Studio cache directory
23+
.vs/
24+
25+
# Gradle cache directory
26+
.gradle/
27+
28+
# Autogenerated VS/MD/Consulo solution and project files
29+
ExportedObj/
30+
.consulo/
31+
*.csproj
32+
*.unityproj
33+
*.sln
34+
*.suo
35+
*.tmp
36+
*.user
37+
*.userprefs
38+
*.pidb
39+
*.booproj
40+
*.svd
41+
*.pdb
42+
*.mdb
43+
*.opendb
44+
*.VC.db
45+
46+
# Unity3D generated meta files
47+
*.pidb.meta
48+
*.pdb.meta
49+
*.mdb.meta
50+
51+
# Unity3D generated file on crash reports
52+
sysinfo.txt
53+
54+
# Builds
55+
*.apk
56+
*.unitypackage
57+
58+
# Crashlytics generated file
59+
crashlytics-build.properties
60+
61+
.idea/.idea.vpm-package-maker/.idea
62+
Assets/PackageMakerWindowData.asset*
63+
.idea
64+
.vscode

Packages/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*/
2+
!com.vrchat.core.*
3+
4+
# Change this to match your new package name
5+
!com.bocud.vrcapitools

Packages/manifest.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"dependencies": {
3+
"com.unity.ide.rider": "1.2.1",
4+
"com.unity.ide.visualstudio": "2.0.11",
5+
"com.unity.ide.vscode": "1.2.4",
6+
"com.unity.test-framework": "1.1.29",
7+
"com.unity.textmeshpro": "2.1.6",
8+
"com.unity.timeline": "1.2.18",
9+
"com.unity.ugui": "1.0.0",
10+
"com.unity.modules.ai": "1.0.0",
11+
"com.unity.modules.androidjni": "1.0.0",
12+
"com.unity.modules.animation": "1.0.0",
13+
"com.unity.modules.assetbundle": "1.0.0",
14+
"com.unity.modules.audio": "1.0.0",
15+
"com.unity.modules.cloth": "1.0.0",
16+
"com.unity.modules.director": "1.0.0",
17+
"com.unity.modules.imageconversion": "1.0.0",
18+
"com.unity.modules.imgui": "1.0.0",
19+
"com.unity.modules.jsonserialize": "1.0.0",
20+
"com.unity.modules.particlesystem": "1.0.0",
21+
"com.unity.modules.physics": "1.0.0",
22+
"com.unity.modules.physics2d": "1.0.0",
23+
"com.unity.modules.screencapture": "1.0.0",
24+
"com.unity.modules.terrain": "1.0.0",
25+
"com.unity.modules.terrainphysics": "1.0.0",
26+
"com.unity.modules.tilemap": "1.0.0",
27+
"com.unity.modules.ui": "1.0.0",
28+
"com.unity.modules.uielements": "1.0.0",
29+
"com.unity.modules.umbra": "1.0.0",
30+
"com.unity.modules.unityanalytics": "1.0.0",
31+
"com.unity.modules.unitywebrequest": "1.0.0",
32+
"com.unity.modules.unitywebrequestassetbundle": "1.0.0",
33+
"com.unity.modules.unitywebrequestaudio": "1.0.0",
34+
"com.unity.modules.unitywebrequesttexture": "1.0.0",
35+
"com.unity.modules.unitywebrequestwww": "1.0.0",
36+
"com.unity.modules.vehicles": "1.0.0",
37+
"com.unity.modules.video": "1.0.0",
38+
"com.unity.modules.vr": "1.0.0",
39+
"com.unity.modules.wind": "1.0.0",
40+
"com.unity.modules.xr": "1.0.0"
41+
}
42+
}

0 commit comments

Comments
 (0)