GitHub Action for Unity game build automation.
- uses: imnotverygood/unity-build-action@v1
with:
operation: check-trigger
github_token: ${{ secrets.GITHUB_TOKEN }}Determines if a build should run
- uses: imnotverygood/unity-build-action@v1
id: check
with:
operation: check-trigger
platforms: ${{ github.event.inputs.platforms }}Outputs:
should-build: true/falseplatforms: all/win/macis_manual: true/false
Generates build configuration
- uses: imnotverygood/unity-build-action@v1
id: config
with:
operation: configureOutputs:
version: Build version (YYYYMMDD.HHMM)unity_version: Unity version from ProjectSetttingschangelog: Git changelog
Handles PR commands (/build, /cancel, /clean-cache, /artifacts).
- uses: imnotverygood/unity-build-action@v1
with:
operation: pr-command
github_token: ${{ secrets.GITHUB_TOKEN }}Executes custom runner commands.
# Upload artifact
- uses: imnotverygood/unity-build-action@v1
with:
operation: runner-command
command: upload-artifact
filepath: build.zip
version: ${{ needs.config.outputs.version }}
commit_sha: ${{ github.sha }}
# Trigger task
- uses: imnotverygood/unity-build-action@v1
with:
operation: runner-command
command: trigger-task
unity_version: ${{ needs.config.outputs.unity_version }}
commit_sha: ${{ github.sha }}/build- Build all platforms/build win- Build Windows only/build mac- Build macOS only/nobuild- Skip auto-build on merge/clean-cache- Clear Unity cache/cancel- Cancel running builds/artifacts- List build artifacts
S3_BUCKET- S3 bucket for cacheS3_ENDPOINT- S3 endpoint URLAWS_ACCESS_KEY_ID- AWS credentialsAWS_SECRET_ACCESS_KEY- AWS credentials