game ci #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Unity Project | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Discard uncommitted changes | |
run: | | |
git reset --hard | |
git clean -fd | |
- name: Install Unity | |
uses: game-ci/unity-install@v2 | |
with: | |
version: 2022.3.27f1 # Specify the Unity version you need | |
modules: windows # Specify the modules you need | |
- name: Build Unity Project | |
uses: kuler90/[email protected] | |
with: | |
unity-path: ${{ github.workspace }}/Unity/Hub/Editor/2022.3.27f1/Editor/Unity # Correct path for the installed Unity version | |
project-path: ${{ github.workspace }} # Default path to your Unity project | |
build-target: StandaloneWindows64 # Required build target platform | |
build-path: ./build # Path to build output | |
build-version: 1.0.0 # Set application version | |
build-number: ${{ github.run_number }} # Set application build number | |
build-defines: RELEASE_VERSION;ENG_VERSION # Set scripting define symbols | |
build-options: CompressWithLz4HC # Additional build options | |
- name: Zip Build Output | |
run: | | |
zip -r SubnauticaIB.zip ./build/* | |
- name: Upload to Butler | |
uses: yeslayla/[email protected] | |
env: | |
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }} | |
CHANNEL: windows | |
ITCH_GAME: subnauticaib | |
ITCH_USER: pyoneerc1 | |
PACKAGE: SubnauticaIB.zip |