Skip to content

Commit

Permalink
Add CI builds and releases for Windows (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
Em3rgencyLT authored and Dyhr committed Jan 15, 2020
1 parent 7a19ab8 commit 212dc7b
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
Binary file added .github/Unity_v2019.x.ulf.enc
Binary file not shown.
54 changes: 54 additions & 0 deletions .github/workflows/main.yml
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 }}

0 comments on commit 212dc7b

Please sign in to comment.