Skip to content

Commit

Permalink
game ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoneerC committed Sep 26, 2024
1 parent 3c350ad commit 783c1fa
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,43 +18,27 @@ jobs:
git reset --hard
git clean -fd
- 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: Install Butler
run: |
curl -LO https://itch.io/butler/installation/linux/butler
chmod +x butler
sudo mv butler /usr/local/bin/
- name: Build project
- name: Build Unity Project
uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: StandaloneWindows64

- name: Build Unity Project
run: |
unity-builder --projectPath . --buildTarget StandaloneWindows64 --buildName SubnauticaIB --outputPath ./build
buildName: SubnauticaIB
buildsPath: ./build

- name: Zip Build Output
run: |
zip -r SubnauticaIB.zip ./build/* # Use zip command for Linux
zip -r SubnauticaIB.zip ./build/*
- name: Upload to Butler
run: |
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

0 comments on commit 783c1fa

Please sign in to comment.