forked from ruanrothmann/frogsmashers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split workflows to build and release
- Loading branch information
Showing
3 changed files
with
71 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
|
||
jobs: | ||
requestActivation: | ||
name: Request activation ✔ | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v1 | ||
|
||
# Activate Unity | ||
- name: Unity - Activate | ||
uses: webbertakken/unity-activate@v1 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
|
||
testRunnerInEditMode: | ||
name: Test in editmode 📝 | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout repository (required to test local actions) | ||
- name: Checkout repository | ||
uses: actions/checkout@v1 | ||
|
||
# Configure test runner | ||
- name: Run tests | ||
id: testRunner | ||
uses: webbertakken/unity-test-runner@v1 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
UNITY_PROJECT_PATH: /HohimBrueh | ||
TEST_MODE: editmode | ||
|
||
# Upload artifact | ||
- name: Expose as artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Test results (edit mode) | ||
path: ${{ steps.testRunner.outputs.artifactsPath }} | ||
|
||
buildForWindows: | ||
name: Build for Windows 🗗 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: webbertakken/[email protected] | ||
with: | ||
projectPath: /HohimBrueh | ||
unityVersion: 2019.2.11f1 | ||
targetPlatform: StandaloneWindows64 | ||
- run: sudo mv build/StandaloneWindows64-2019.2.11f1/StandaloneWindows64 build/StandaloneWindows64-2019.2.11f1/StandaloneWindows64.exe | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: Windows64 | ||
path: build/StandaloneWindows64-2019.2.11f1 | ||
- run: zip -r Windows64.zip build/StandaloneWindows64-2019.2.11f1 | ||
- uses: JasonEtco/upload-to-release@master | ||
with: | ||
args: Windows64.zip application/zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |