Skip to content

Instantly share code, notes, and snippets.

@nanodeath
Created August 31, 2022 03:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanodeath/903f2a63cb020c36073daedd9977c24b to your computer and use it in GitHub Desktop.
Save nanodeath/903f2a63cb020c36073daedd9977c24b to your computer and use it in GitHub Desktop.
Unity CircleCI + itch.io
version: 2.1
orbs:
unity: game-ci/unity@1.0.0
jobs:
build-windows:
executor:
name: unity/ubuntu
editor_version: 2021.3.8f1
resource_class: large
target_platform: windows-mono
steps:
- checkout
- unity/prepare-env
- unity/build:
build-name: <redacted>
build-target: StandaloneWindows64
- persist_to_workspace:
root: Builds
paths:
- StandaloneWindows64
publish-windows:
resource_class: small
docker:
- image: cimg/base:current # alternatively, cimg/base:2022.08
steps:
- attach_workspace:
at: /tmp/workspace
- run:
name: Download Butler
command: |
cd /tmp/workspace
curl -L -o butler.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default
unzip butler.zip
chmod +x butler
./butler -V
- run:
name: Upload Game to itch.io
command: |
cd /tmp/workspace
./butler push StandaloneWindows64 <redacted>
workflows:
# create-unity-activation-file:
# jobs:
# - unity/create-activation-file
build-unity-project:
jobs:
- build-windows:
context: Unity2021
- publish-windows:
context: Unity2021
requires:
- build-windows
filters:
branches:
only:
- master
- main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment