test ci #5
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/checkout@v2 | |
- name: Discard uncommitted changes | |
run: | | |
git reset --hard | |
git clean -fd | |
- name: Install Butler | |
run: | | |
curl -LO https://itch.io/butler/installation/linux/butler | |
chmod +x butler | |
sudo mv butler /usr/local/bin/ | |
- name: Verify Butler Installation | |
run: | | |
which butler | |
butler --version | |
- 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 | |
buildName: SubnauticaIB | |
buildsPath: ./build | |
- name: Zip Build Output | |
run: | | |
zip -r SubnauticaIB.zip ./build/* | |
- name: Upload to Butler | |
run: | | |
butler push SubnauticaIB.zip pyoneerc1/subnauticaib:latest --credentials ${{ secrets.BUTLER_CREDENTIALS }} |