Skip to content

Changes in preparation for Alpha 3.0 #11

Changes in preparation for Alpha 3.0

Changes in preparation for Alpha 3.0 #11

Workflow file for this run

name: CD
on:
push:
tags:
- 'v*' # versioned tags
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup Nuget.exe
uses: nuget/setup-nuget@v1
- name: Restore packages
run: nuget restore CardboardLauncher.sln
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
- name: Build with MSBuild
run: msbuild CardboardLauncher.sln -p:Configuration=Release
- name: Archive Windows binaries
working-directory: ./bin/Release
run: |
Copy-Item "..\..\launcher.json" -Destination "."
Compress-Archive -Path .\CardboardLauncher.exe, .\launcher.json, .\Newtonsoft.Json.dll, .\Facepunch.Steamworks.Win64.dll, .\Microsoft.Web.WebView2.Core.dll, .\Microsoft.Web.WebView2.WinForms.dll, .\runtimes -DestinationPath CardboardLauncher.zip
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Windows binaries
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/Release/CardboardLauncher.zip
asset_name: CardboardLauncher.zip
asset_content_type: application/zip