diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index d4664b1..b8d0cea 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -18,21 +18,13 @@ 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 }} @@ -40,21 +32,13 @@ jobs: 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