Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoneerC committed Sep 26, 2024
1 parent 067cd08 commit 92a570c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/butler.yaml → .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
name: Build Unity Project

on:
#push:
#branches:
#- main
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Cache Library
uses: actions/cache@v3
with:
path: Library
key: Library-${{ hashFiles('**/*.cs', '**/*.shader', '**/*.prefab', '**/*.unity', '**/*.json', '**/*.txt', '**/*.xml', '**/*.png', '**/*.jpg', '**/*.mp4', '**/*.wav', '**/*.ogg') }}
restore-keys: |
Library-
- name: Checkout code
uses: actions/checkout@v2

Expand All @@ -29,16 +37,24 @@ jobs:
with:
unityVersion: 2022.3.27f1
targetPlatform: StandaloneWindows64
UNITY_LICENSE: ${{ secrets.UNITY_SERIAL }}
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}

- name: Build Unity Project
run: |
unity-builder --projectPath . --buildTarget StandaloneWindows64 --buildName MyGameBuild --outputPath ./build
unity-builder --projectPath . --buildTarget StandaloneWindows64 --buildName SubnauticaIB --outputPath ./build
- name: Zip Build Output
run: |
zip -r subnauticaib.zip ./build/* # Use zip command for Linux
zip -r SubnauticaIB.zip ./build/* # Use zip command for Linux
- name: Upload to Butler
run: |
butler push subnauticaib.zip pyoneerc1/subnauticaib:latest --credentials ${{ secrets.BUTLER_CREDENTIALS }}
butler push SubnauticaIB.zip pyoneerc1/subnauticaib:latest --credentials ${{ secrets.BUTLER_CREDENTIALS }}
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: Build
path: ./build
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ Desktop.ini
.vs/
*.code-workspace

# Ignore temporaries from GameCI
/[Aa]rtifacts/
/[Cc]odeCoverage/

# Rider
.idea/
*.sln.iml
Expand Down

0 comments on commit 92a570c

Please sign in to comment.