Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

CentipetalForce, Drag, Kinectic Friction ,Refraction #9

CentipetalForce, Drag, Kinectic Friction ,Refraction

CentipetalForce, Drag, Kinectic Friction ,Refraction #9

Workflow file for this run

name: BuildForRelease
on:
push:
tags: "*"
env:
SOLUTION_FILE_PATH: NEOSPlus.sln
BUILD_CONFIGURATION: Release
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Restore Nuget
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Download Neos
shell: pwsh
run: |
New-Item -Type Directory NeosVR
cd NeosVR
$web = [System.Net.WebClient]::new()
$web.DownloadFile("https://www.7-zip.org/a/7zr.exe","$PWD\7zr.exe")
$cvstring = $web.DownloadString('https://cloudxstorage.blob.core.windows.net/install/Pro/Public')
$web.DownloadFile("https://assets.neos.com/install/Pro/Data/$cvstring.7z","$env:TEMP\neosupdate.7z")
.\7zr.exe x -y "$env:TEMP\neosupdate.7z" *
Remove-Item "$env:TEMP\neosupdate.7z"
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
- name: upload windows artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/Release/NEOSPlus.dll
asset_name: NEOSPlus.dll
asset_content_type: application/octet-stream