merge github-actions #12
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 | |
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: Setup 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 | |
- name: Remove build directory | |
run: sudo rm -dfr ./build | |
- name: Build | |
run: | | |
dotnet tool restore | |
dotnet cake | |
#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 |