Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: recursive

- uses: actions/cache@v4
with:
Expand All @@ -26,8 +26,4 @@ jobs:
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
packageMode: true
projectPath: Packages/com.trytalo.talo
unityVersion: 6000.0.28f1
scopedRegistryUrl: https://package.openupm.com
registryScopes: 'com.mikeschweitzer.websocket'
55 changes: 12 additions & 43 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,57 +7,26 @@ jobs:
release:
runs-on: ubuntu-latest

env:
COMMIT_EMAIL: [email protected]
COMMIT_MESSAGE: "Release https://github.com/TaloDev/unity/releases/tag/${{ github.ref_name }}"

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/setup-node@v4
with:
node-version: 20

- name: Copy files
run: |
mkdir -p Release/Samples~
cp -a Packages/com.trytalo.talo/. Release
cp -a Assets/Samples/. Release/Samples~

- name: Copy to package repo (main branch)
uses: tudddorrr/github-action-push-to-another-repository@main
if: "!contains(github.event.head_commit.message, '--no-release') && !contains(github.event.head_commit.message, 'pre.')"
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: Release
destination-github-username: TaloDev
destination-repository-name: unity-package
user-email: ${{ env.COMMIT_EMAIL }}
commit-message: ${{ env.COMMIT_MESSAGE }}

- name: Copy to package repo (version branch)
uses: tudddorrr/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
- name: Install Unity
uses: game-ci/unity-builder@v3
with:
source-directory: Release
destination-github-username: TaloDev
destination-repository-name: unity-package
user-email: ${{ env.COMMIT_EMAIL }}
commit-message: ${{ env.COMMIT_MESSAGE }}
target-branch: ${{ github.ref_name }}

- name: Create artifact
run: |
cd Release
npm pack
unityVersion: 6000.0.28f1

- name: Remove the version from the artifact name
- name: Create Unity Package
run: |
filepath=$(ls Release/*.tgz)
new_filepath=$(echo "$filepath" | sed -E 's/-[0-9]+\.[0-9]+\.[0-9]+\.tgz$/.tgz/')
mv "$filepath" "$new_filepath"
mkdir -p Release
unity-editor -batchmode -nographics -quit \
-projectPath "$(pwd)" \
-exportPackage "Assets/Talo Game Services" "Release/talo.unitypackage"

- name: Upload to itch
uses: manleydev/butler-publish-itchio-action@master
Expand All @@ -66,7 +35,7 @@ jobs:
CHANNEL: package
ITCH_GAME: talo-unity
ITCH_USER: sleepystudios
PACKAGE: Release/com.trytalo.talo.tgz
PACKAGE: Release/talo.unitypackage
VERSION: ${{ github.ref_name }}

- name: Create release
Expand All @@ -75,4 +44,4 @@ jobs:
with:
generate_release_notes: true
prerelease: ${{ contains(github.event.head_commit.message, 'pre.') }}
files: Release/*.tgz
files: Release/talo.unitypackage
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "Assets/Talo Game Services/Talo/Runtime/Vendor/com.mikeschweitzer.websocket"]
path = Assets/Talo Game Services/Talo/Runtime/Vendor/com.mikeschweitzer.websocket
url = https://github.com/mikerochip/unity-websocket.git
163 changes: 0 additions & 163 deletions Assets/Samples/ChatDemo/Scripts/ChatUIController.cs

This file was deleted.

Loading