-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI builds and releases for Windows (#93)
- Loading branch information
1 parent
7a19ab8
commit 212dc7b
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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,54 @@ | ||
name: Public Release | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: gableroux/unity3d:2019.2.2f1 | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v1 | ||
|
||
- name: Decrypt the license file | ||
run: openssl aes-256-cbc -d -in .github/Unity_v2019.x.ulf.enc -k ${{ secrets.UNITY_LICENSE_KEY }} >> .github/Unity_v2019.x.ulf | ||
|
||
- name: Activate Unity | ||
run: /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -manualLicenseFile .github/Unity_v2019.x.ulf || exit 0 | ||
|
||
- name: Build Windows Player | ||
run: /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -accept-apiupdate -logFile -projectPath . -buildWindows64Player ./dist/win64/RESS3D.exe | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: RESS3D_WIN | ||
path: ./dist/win64 | ||
|
||
publish: | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
steps: | ||
- name: Create release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Download build | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: RESS3D_WIN | ||
- name: Get version tag | ||
id: tag_name | ||
run: | | ||
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/} | ||
- name: Archive build | ||
uses: montudor/[email protected] | ||
with: | ||
args: zip -qq -r ./RESS3D_${{ steps.tag_name.outputs.SOURCE_TAG }}.zip ./RESS3D_WIN | ||
- name: Attach build to release | ||
uses: Roang-zero1/github-upload-release-artifacts-action@master | ||
with: | ||
args: ./RESS3D_${{ steps.tag_name.outputs.SOURCE_TAG }}.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |