-
Notifications
You must be signed in to change notification settings - Fork 35
45 lines (43 loc) · 1.21 KB
/
publish-unity.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Publish UnityPackage
on:
push:
tags: # v1.0, v1.1, etc..
- v*
workflow_dispatch:
jobs:
generate-pacakge:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v4
with:
path: UnityProject/Library
key: Library
- name: Generate package
uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: UnityProject
unityVersion: auto
targetPlatform: StandaloneLinux64
buildsPath: Build
versioning: None
buildMethod: Cathei.BakingSheet.Editor.PackageGenerationTools.GeneratePackage
- name: Upload Unity package
uses: actions/upload-artifact@v4
with:
name: Unity Package
path: Build/*.unitypackage
- name: Create release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: Build/*.unitypackage