Skip to content

Use Cake build-system, use NuGet package-manager, use GitHub Actions #5

Use Cake build-system, use NuGet package-manager, use GitHub Actions

Use Cake build-system, use NuGet package-manager, use GitHub Actions #5

Workflow file for this run

name: Build
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.0
- name: Unity - Activate
uses: game-ci/unity-activate@v2.0.0
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
unityVersion: 2020.3.33f1
- name: Unity - Build assets
uses: game-ci/unity-builder@v3
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: StandaloneWindows64
unityVersion: 2020.3.33f1
projectPath: ksp2-papi-assets
buildMethod: BuildAssets.PerformBuild
versioning: None
- name: Build
uses: cake-build/cake-action@v1.4.1
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.3
with:
name: build
path: ${{ github.workspace }}/build/ksp2-papi.zip