-
-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (49 loc) · 1.75 KB
/
Copy pathcreate-release.yml
File metadata and controls
57 lines (49 loc) · 1.75 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
name: Release
on:
workflow_dispatch:
env:
OUTPUT_DIR: Release
OUTPUT_FILE: talo.unitypackage
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- uses: actions/cache@v5
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
- name: Create Unity package
uses: game-ci/unity-builder@v5
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: StandaloneLinux64
unityVersion: 6000.3.10f1
buildMethod: TaloGameServices.Editor.TaloPackageExporter.Export
buildsPath: ${{ env.OUTPUT_DIR }}
versioning: None
manualExit: true
customParameters: -outputPath ${{ env.OUTPUT_DIR }}/${{ env.OUTPUT_FILE }}
- name: Upload to itch
uses: XanatosX/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: package
ITCH_GAME: talo-unity
ITCH_USER: sleepystudios
PACKAGE: ${{ env.OUTPUT_DIR }}
VERSION: ${{ github.ref_name }}
- name: Create release
uses: softprops/action-gh-release@v3
if: "!contains(github.event.head_commit.message, '--no-release')"
with:
generate_release_notes: true
prerelease: ${{ contains(github.event.head_commit.message, 'pre.') }}
files: ${{ env.OUTPUT_DIR }}/${{ env.OUTPUT_FILE }}