Skip to content

Commit 73e06e6

Browse files
committed
Merge branch 'develop'
2 parents 2077e07 + 3e10ffe commit 73e06e6

File tree

3 files changed

+17
-32
lines changed

3 files changed

+17
-32
lines changed

.github/workflows/activation.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ jobs:
2525
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
2626
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
2727
with:
28-
githubToken: ${{ secrets.GITHUB_TOKEN }}
2928
unityVersion: 6000.0.28f1

.github/workflows/create-release.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Release
33
on:
44
workflow_dispatch:
55

6+
env:
7+
OUTPUT_DIR: Talo
8+
69
jobs:
710
release:
811
runs-on: ubuntu-latest
@@ -16,17 +19,21 @@ jobs:
1619
with:
1720
node-version: 20
1821

19-
- name: Install Unity
20-
uses: game-ci/unity-builder@v3
21-
with:
22-
unityVersion: 6000.0.28f1
22+
- name: Create output directory
23+
run: mkdir -p "${{ env.OUTPUT_DIR }}"
2324

2425
- name: Create Unity Package
26+
uses: natsuneko-laboratory/create-unitypackage@v3
27+
with:
28+
files-glob: ./Assets/Talo Game Services/**/*
29+
dest: ${{ env.OUTPUT_DIR }}/talo.unitypackage
30+
31+
- name: Zip package
32+
id: zip-package
2533
run: |
26-
mkdir -p Release
27-
unity-editor -batchmode -nographics -quit \
28-
-projectPath "$(pwd)" \
29-
-exportPackage "Assets/Talo Game Services" "Release/talo.unitypackage"
34+
filepath=${{ env.OUTPUT_DIR }}/talo-unity-${{ github.ref_name }}.zip
35+
echo "filepath=$filepath" >> $GITHUB_OUTPUT
36+
zip $filepath "${{ env.OUTPUT_DIR }}/talo.unitypackage"
3037
3138
- name: Upload to itch
3239
uses: manleydev/butler-publish-itchio-action@master
@@ -35,7 +42,7 @@ jobs:
3542
CHANNEL: package
3643
ITCH_GAME: talo-unity
3744
ITCH_USER: sleepystudios
38-
PACKAGE: Release/talo.unitypackage
45+
PACKAGE: ${{ steps.zip-package.outputs.filepath }}
3946
VERSION: ${{ github.ref_name }}
4047

4148
- name: Create release
@@ -44,4 +51,4 @@ jobs:
4451
with:
4552
generate_release_notes: true
4653
prerelease: ${{ contains(github.event.head_commit.message, 'pre.') }}
47-
files: Release/talo.unitypackage
54+
files: ${{ env.OUTPUT_DIR }}/talo.unitypackage

0 commit comments

Comments
 (0)