mirror of
https://github.com/ivabus/roulette
synced 2024-11-22 16:35:09 +03:00
Create dotnet-win.yml
This commit is contained in:
parent
5b344f8a29
commit
e0cf3c2ac8
1 changed files with 34 additions and 0 deletions
34
.github/workflows/dotnet-win.yml
vendored
Normal file
34
.github/workflows/dotnet-win.yml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: dotnet-win
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
- name: Build
|
||||
run: dotnet build --no-restore
|
||||
- name: Test
|
||||
run: dotnet test --no-build --verbosity normal
|
||||
- name: Prepare for building
|
||||
run: mkdir prepublish && mkdir publish
|
||||
- name: Publish on osx-x64
|
||||
run: dotnet publish --runtime win-x64 -o prepublish/win-x64/ --self-contained -p:PublishSingleFile=true && mv prepublish/win-x64/roulette publish/roulette-win-x64
|
||||
- name: Publish on linux-x64
|
||||
run: dotnet publish --runtime win-arm64 -o prepublish/win-arm64/ --self-contained -p:PublishSingleFile=true && mv prepublish/win-arm64/roulette publish/roulette-win-arm64
|
||||
|
||||
|
||||
- name: Upload To Github Release
|
||||
uses: xresloader/upload-to-github-release@v1.3.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
file: publish/roulette-win-x64;publish/roulette-win-arm64
|
||||
update_latest_release: true
|
Loading…
Reference in a new issue