mirror of
https://github.com/AcChosen/VR-Stage-Lighting.git
synced 2024-11-23 23:21:07 +01:00
Final Update: VPM & Quest
This commit is contained in:
parent
0026f126e4
commit
28632e9611
67
.github/workflows/build-listing.yml
vendored
67
.github/workflows/build-listing.yml
vendored
@ -1,67 +0,0 @@
|
||||
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
|
63
.github/workflows/iterate.yml
vendored
63
.github/workflows/iterate.yml
vendored
@ -1,63 +0,0 @@
|
||||
name: Build For Iterating
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
|
||||
env:
|
||||
packageName: "com.acchosen.vr-stage-lighting"
|
||||
|
||||
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
|
||||
|
||||
- name: Copy root files
|
||||
run: |
|
||||
cp LICENSE* Packages/${{ env.packageName }}/
|
||||
cp README.md* Packages/${{ env.packageName }}/
|
||||
cp CHANGELOG.md* Packages/${{ env.packageName }}/
|
||||
|
||||
- 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: AcChosen/create-unitypackage@v1.1.4
|
||||
with:
|
||||
package-path: ${{ env.unityPackage }}
|
||||
include-files: metaList
|
||||
|
||||
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Zip release
|
||||
path: ${{ env.zipFile }}
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: UnityPackage release
|
||||
path: ${{ env.unityPackage }}
|
57
.github/workflows/release.yml
vendored
57
.github/workflows/release.yml
vendored
@ -1,57 +0,0 @@
|
||||
name: Build Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: main
|
||||
paths: Packages/com.acchosen.vr-stage-lighting/**
|
||||
|
||||
env:
|
||||
packageName: "com.acchosen.vr-stage-lighting"
|
||||
|
||||
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
|
||||
|
||||
- name: Create Zip
|
||||
uses: thedoctor0/zip-release@09336613be18a8208dfa66bd57efafd9e2685657
|
||||
with:
|
||||
type: "zip"
|
||||
directory: "Packages/${{env.packageName}}/"
|
||||
filename: "../../${{env.zipFile}}" # make the zip file two directories up, since we start two directories in above
|
||||
|
||||
- run: find "Packages/${{env.packageName}}/" -name \*.meta >> metaList
|
||||
|
||||
- name: Create UnityPackage
|
||||
uses: pCYSl5EDgo/create-unitypackage@e28c7a4616b2754c564b0a959a03b3c89b756fdb
|
||||
with:
|
||||
package-path: ${{ env.unityPackage }}
|
||||
include-files: metaList
|
||||
|
||||
|
||||
- name: Make Release
|
||||
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
|
||||
with:
|
||||
tag_name: ${{ steps.version.outputs.prop }}
|
||||
files: |
|
||||
${{ env.zipFile }}
|
||||
${{ env.unityPackage }}
|
||||
Packages/${{ env.packageName }}/package.json
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,6 +11,7 @@
|
||||
/[Mm]emoryCaptures/
|
||||
/[Aa]ssets/
|
||||
/[Pp]rojectSettings/
|
||||
/[Ee]xports/
|
||||
|
||||
# Asset meta data should only be ignored when the corresponding asset is also ignored
|
||||
!/[Aa]ssets/**/*.meta
|
||||
|
@ -0,0 +1 @@
|
||||
2.2.0
|
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 846d15cdc5e6c994d9fd2cf7f7763b39
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user