Skip to content

Commit

Permalink
Merge pull request #209 from llealloo/dev
Browse files Browse the repository at this point in the history
Release 0.3.0
  • Loading branch information
pema99 authored Nov 23, 2022
2 parents 787a96d + 741d346 commit e5db1c2
Show file tree
Hide file tree
Showing 2,282 changed files with 1,423,558 additions and 64,827 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/StandaloneMetadata/AudioLink.Editor.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "AudioLink.Editor",
"references": [
"AudioLink"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [
],
"versionDefines": [
],
"noEngineReferences": false
}
16 changes: 16 additions & 0 deletions .github/workflows/StandaloneMetadata/AudioLink.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "AudioLink",
"references": [
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [
],
"versionDefines": [
],
"noEngineReferences": false
}
20 changes: 20 additions & 0 deletions .github/workflows/StandaloneMetadata/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name" : "com.llealloo.audiolink",
"displayName" : "AudioLink",
"version" : "0.3.0",
"description" : "Audio reactive prefabs for VRChat",
"gitDependencies" : {},
"vpmDependencies" : {
},
"legacyFolders" : {
"Assets\\AudioLink": ""
},
"samples" : [
{
"displayName" : "AudioLinkExampleScene",
"description" : "An example scene showing off the capabilities of AudioLink.",
"path" : "Samples~/AudioLinkExampleScene"
}
],
"legacyFiles" : {}
}
67 changes: 67 additions & 0 deletions .github/workflows/build-listing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Build Repo Listing

on:
workflow_dispatch:
workflow_run:
workflows: [Build Release]
types:
- completed
release:
types: [published, created, edited, unpublished, deleted, released]

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

env:
listPublishDirectory: Website
pathToCi: ci

jobs:

build-listing:
name: build-listing
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3 # check out this repo
- uses: actions/checkout@v3 # check out automation repo
with:
repository: vrchat-community/package-list-action
path: ${{env.pathToCi}}
clean: false # otherwise the local repo will no longer be checked out

- name: Restore Cache
uses: actions/cache@v2
with:
path: |
${{env.pathToCi}}/.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}

- name: Build Package Version Listing
run: ${{env.pathToCi}}/build.cmd BuildRepoListing --root ${{env.pathToCi}} --list-publish-directory $GITHUB_WORKSPACE/${{env.listPublishDirectory}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Pages
uses: actions/configure-pages@v2

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ${{env.listPublishDirectory}}

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
108 changes: 108 additions & 0 deletions .github/workflows/iterate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: Build For Iterating

on:
workflow_dispatch:
push:

env:
packageName: "com.llealloo.audiolink"

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Get version
id: version
uses: notiz-dev/github-action-json-property@7c8cf5cc36eb85d8d287a8086a39dac59628eb31
with:
path: "Packages/${{env.packageName}}/package.json"
prop_path: "version"

- run: echo ${{steps.version.outputs.prop}}

- name: Set Environment Variables
run: |
echo "zipFile=${{ env.packageName }}-${{ steps.version.outputs.prop }}".zip >> $GITHUB_ENV
echo "unityPackage=${{ env.packageName }}-${{ steps.version.outputs.prop }}.unitypackage" >> $GITHUB_ENV
echo "minimalUnityPackage=AudioLink_${{ steps.version.outputs.prop }}_minimal.unitypackage" >> $GITHUB_ENV
- name: Copy root files
run: |
cp LICENSE* Packages/${{ env.packageName }}/
cp README.md* Packages/${{ env.packageName }}/
cp CHANGELOG.md* Packages/${{ env.packageName }}/
mkdir -p Packages/${{ env.packageName }}/Documentation~/
cp -R Docs/* Packages/${{ env.packageName }}/Documentation~/
- name: Create zip
uses: thedoctor0/zip-release@09336613be18a8208dfa66bd57efafd9e2685657
with:
type: "zip"
directory: "Packages/${{env.packageName}}/"
filename: "../../${{env.zipFile}}"

- run: find "Packages/${{env.packageName}}/" -name \*.meta >> metaList

- name: Create full UnityPackage
uses: pCYSl5EDgo/create-unitypackage@e28c7a4616b2754c564b0a959a03b3c89b756fdb
with:
package-path: ${{ env.unityPackage }}
include-files: metaList

- name: Make minimal meta list
run: |
cp ".github/workflows/StandaloneMetadata/package.json" "Packages/${{env.packageName}}/package.json"
cp ".github/workflows/StandaloneMetadata/AudioLink.asmdef" "Packages/${{env.packageName}}/Runtime/AudioLink.asmdef"
cp ".github/workflows/StandaloneMetadata/AudioLink.Editor.asmdef" "Packages/${{env.packageName}}/Editor/Audiolink.Editor.asmdef"
echo "Packages/${{env.packageName}}/package.json.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/AudioLink.asmdef.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/Editor/Audiolink.Editor.asmdef.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/LICENSE.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/README.md.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/CHANGELOG.md.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/AudioLink.prefab.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/AudioLinkAvatar.prefab.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/AudioLinkController.prefab.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/VERSION.txt.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/Scripts.meta" >> minimalMetaList
find "Packages/${{env.packageName}}/Runtime/Scripts/" -name \*.meta >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/RenderTextures.meta" >> minimalMetaList
find "Packages/${{env.packageName}}/Runtime/RenderTextures/" -name \*.meta >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/Shaders.meta" >> minimalMetaList
find "Packages/${{env.packageName}}/Runtime/Shaders/" -name \*.meta >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/Materials.meta" >> minimalMetaList
find "Packages/${{env.packageName}}/Runtime/Materials/" -name \*.meta >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/Resources.meta" >> minimalMetaList
find "Packages/${{env.packageName}}/Runtime/Resources/" -name \*.meta >> minimalMetaList
echo "Packages/${{env.packageName}}/Editor/Scripts.meta" >> minimalMetaList
find "Packages/${{env.packageName}}/Editor/Scripts/" -name \*.meta >> minimalMetaList
- name: Create minimal UnityPackage
uses: pCYSl5EDgo/create-unitypackage@e28c7a4616b2754c564b0a959a03b3c89b756fdb
with:
package-path: ${{ env.minimalUnityPackage }}
include-files: minimalMetaList

- uses: actions/upload-artifact@v3
with:
name: Zip release
path: ${{ env.zipFile }}

- uses: actions/upload-artifact@v3
with:
name: UnityPackage release
path: ${{ env.unityPackage }}

- uses: actions/upload-artifact@v3
with:
name: Minimal UnityPackage release
path: ${{ env.minimalUnityPackage }}
109 changes: 109 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: Build Release

on:
workflow_dispatch:
push:
branches: master

env:
packageName: "com.llealloo.audiolink"

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Get version
id: version
uses: notiz-dev/github-action-json-property@7c8cf5cc36eb85d8d287a8086a39dac59628eb31
with:
path: "Packages/${{env.packageName}}/package.json"
prop_path: "version"

- run: echo ${{steps.version.outputs.prop}}

- name: Set Environment Variables
run: |
echo "zipFile=${{ env.packageName }}-${{ steps.version.outputs.prop }}".zip >> $GITHUB_ENV
echo "unityPackage=${{ env.packageName }}-${{ steps.version.outputs.prop }}.unitypackage" >> $GITHUB_ENV
echo "minimalUnityPackage=AudioLink_${{ steps.version.outputs.prop }}_minimal.unitypackage" >> $GITHUB_ENV
- name: Copy root files
run: |
cp LICENSE* Packages/${{ env.packageName }}/
cp README.md* Packages/${{ env.packageName }}/
cp CHANGELOG.md* Packages/${{ env.packageName }}/
mkdir -p Packages/${{ env.packageName }}/Documentation~/
cp -R Docs/* Packages/${{ env.packageName }}/Documentation~/
- name: Create zip
uses: thedoctor0/zip-release@09336613be18a8208dfa66bd57efafd9e2685657
with:
type: "zip"
directory: "Packages/${{env.packageName}}/"
filename: "../../${{env.zipFile}}"

- run: find "Packages/${{env.packageName}}/" -name \*.meta >> metaList

- name: Create full UnityPackage
uses: pCYSl5EDgo/create-unitypackage@e28c7a4616b2754c564b0a959a03b3c89b756fdb
with:
package-path: ${{ env.unityPackage }}
include-files: metaList

- name: Make minimal meta list
run: |
cp ".github/workflows/StandaloneMetadata/package.json" "Packages/${{env.packageName}}/package.json"
cp ".github/workflows/StandaloneMetadata/AudioLink.asmdef" "Packages/${{env.packageName}}/Runtime/AudioLink.asmdef"
cp ".github/workflows/StandaloneMetadata/AudioLink.Editor.asmdef" "Packages/${{env.packageName}}/Editor/Audiolink.Editor.asmdef"
echo "Packages/${{env.packageName}}/package.json.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/AudioLink.asmdef.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/Editor/Audiolink.Editor.asmdef.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/LICENSE.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/README.md.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/CHANGELOG.md.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/AudioLink.prefab.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/AudioLinkAvatar.prefab.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/AudioLinkController.prefab.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/VERSION.txt.meta" >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/Scripts.meta" >> minimalMetaList
find "Packages/${{env.packageName}}/Runtime/Scripts/" -name \*.meta >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/RenderTextures.meta" >> minimalMetaList
find "Packages/${{env.packageName}}/Runtime/RenderTextures/" -name \*.meta >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/Shaders.meta" >> minimalMetaList
find "Packages/${{env.packageName}}/Runtime/Shaders/" -name \*.meta >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/Materials.meta" >> minimalMetaList
find "Packages/${{env.packageName}}/Runtime/Materials/" -name \*.meta >> minimalMetaList
echo "Packages/${{env.packageName}}/Runtime/Resources.meta" >> minimalMetaList
find "Packages/${{env.packageName}}/Runtime/Resources/" -name \*.meta >> minimalMetaList
echo "Packages/${{env.packageName}}/Editor/Scripts.meta" >> minimalMetaList
find "Packages/${{env.packageName}}/Editor/Scripts/" -name \*.meta >> minimalMetaList
- name: Create minimal UnityPackage
uses: pCYSl5EDgo/create-unitypackage@e28c7a4616b2754c564b0a959a03b3c89b756fdb
with:
package-path: ${{ env.minimalUnityPackage }}
include-files: minimalMetaList

- name: Extract release notes
run: cat CHANGELOG.md | sed -n '/^## ${{ steps.version.outputs.prop }}.*$/,/^## .*$/p' | sed '$d' > releaseNotes

- name: Make release
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
with:
name: AudioLink ${{ steps.version.outputs.prop }}
body_path: releaseNotes
tag_name: ${{ steps.version.outputs.prop }}
files: |
${{ env.zipFile }}
${{ env.unityPackage }}
${{ env.minimalUnityPackage }}
Packages/${{ env.packageName }}/package.json
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ crashlytics-build.properties
/TurboRename.meta
/Udon/
/Udon.meta
/UdonSharp/
/UdonSharp.meta
/AudioLinkUnityProject/Assets/UdonSharp/
/AudioLinkUnityProject/Assets/UdonSharp.meta
/VRCSDK/
/VRCSDK.meta
/VRChat Examples/
Expand All @@ -50,8 +50,8 @@ crashlytics-build.properties

/CyanEmu/
/CyanEmu.meta
/AmplifyShaderEditor/
/AmplifyShaderEditor.meta
/AudioLinkUnityProject/Assets/AmplifyShaderEditor/
/AudioLinkUnityProject/Assets/AmplifyShaderEditor.meta
/Plugins/
/Plugins.meta
/TurboRename/
Expand All @@ -68,4 +68,4 @@ crashlytics-build.properties
/VideoTXL/
/VideoTXL.meta

Compiled/
/AudioLinkUnityProject/Assets/Samples*
Binary file not shown.
Loading

0 comments on commit e5db1c2

Please sign in to comment.