mirror of
https://github.com/AcChosen/VR-Stage-Lighting.git
synced 2025-02-17 10:48:35 +01:00
Create iterate.yml
Based on https://github.com/llealloo/vrc-udon-audio-link/blob/master/.github/workflows/iterate.yaml from pema99.
This commit is contained in:
parent
b31e5f6d54
commit
aa72f2344d
63
.github/workflows/iterate.yml
vendored
Normal file
63
.github/workflows/iterate.yml
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
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 }}/
|
||||
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
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Zip release
|
||||
path: ${{ env.zipFile }}
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: UnityPackage release
|
||||
path: ${{ env.unityPackage }}
|
Loading…
x
Reference in New Issue
Block a user