Skip to content

Commit

Permalink
Use pCYSl5EDgo/create-unitypackage
Browse files Browse the repository at this point in the history
  • Loading branch information
hadashiA committed Feb 4, 2021
1 parent a9c3da9 commit b600f17
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
File renamed without changes.
30 changes: 11 additions & 19 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,24 @@ on:
jobs:
build-unity:
runs-on: ubuntu-latest
env:
UNITY_LICENSE_FILE: ./tmp/ulf
UNITY_BIN: /opt/Unity/Editor/Unity
container:
image: gableroux/unity3d:2020.1.13f1-linux-il2cpp
steps:
- uses: actions/checkout@v2
- name: Decode Unity License File
run: |
mkdir ./tmp
echo -n ${{ secrets.UNITY_LICENSE_2020_1_BASE64 }} | base64 --decode > $UNITY_LICENSE_FILE
- run: $UNITY_BIN -quit -batchmode -nographics -silent-crashes -logFile -manualLicenseFile $UNITY_LICENSE_FILE || exit 0

# set release tag(*.*.*) to env.GIT_TAG
- run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

# Execute scripts: Export Package
- name: Export unitypackage
run: $UNITY_BIN -quit -batchmode -nographics -logFile /dev/stdout -exportPackage Assets/VContainer/Runtime Assets/VContainer/Editor VContainer.${{ env.GIT_TAG }}.unitypackage -projectPath ./
- name: Create meta list
working-directory: VContainer

# Store artifacts.
run: |
echo Assets/VContainer/Runtime.meta >> metaList
find Assets/VContainer/Runtime -name \*.meta >> metaList
echo Assets/VContainer/Editor.meta >> metaList
find Assets/VContainer/Editor -name \*.meta >> metaList
- uses: pCYSl5EDgo/create-unitypackage@master
with:
package-path: VContainer.${{ env.GIT_TAG }}.unitypackage
include-files: VContainer/metaList
- uses: actions/upload-artifact@v2
with:
name: VContainer.${{ env.GIT_TAG }}.unitypackage
path: ./VContainer/VContainer.${{ env.GIT_TAG }}.unitypackage
path: VContainer.${{ env.GIT_TAG }}.unitypackage

create-release:
needs: [build-unity]
Expand Down

1 comment on commit b600f17

@vercel
Copy link

@vercel vercel bot commented on b600f17 Feb 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.