mirror of
https://github.com/ivabus/roulette
synced 2024-11-22 16:35:09 +03:00
Update dotnet.yml
This commit is contained in:
parent
fb765e6f0f
commit
1b0020121b
1 changed files with 33 additions and 7 deletions
40
.github/workflows/dotnet.yml
vendored
40
.github/workflows/dotnet.yml
vendored
|
@ -1,11 +1,5 @@
|
||||||
name: .NET
|
name: .NET
|
||||||
|
on: workflow_dispatch
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
|
@ -23,3 +17,35 @@ jobs:
|
||||||
run: dotnet build --no-restore
|
run: dotnet build --no-restore
|
||||||
- name: Test
|
- name: Test
|
||||||
run: dotnet test --no-build --verbosity normal
|
run: dotnet test --no-build --verbosity normal
|
||||||
|
- name: Prepare for publishing
|
||||||
|
- name: Publish on osx-x64
|
||||||
|
run: dotnet publish --runtime osx-x64 -o publish/osx-x64/
|
||||||
|
- name: Publish on linux-x64
|
||||||
|
run: dotnet publish --runtime linux-x64 -o publish/linux-x64/
|
||||||
|
- name: Publish on linux-musl-x64
|
||||||
|
run: dotnet publish --runtime -o publish/linux-musl-x64/
|
||||||
|
- name: Publish on linux-arm64
|
||||||
|
run: dotnet publish --runtime -o publish/linux-arm64/
|
||||||
|
- name: Compress to zip file
|
||||||
|
run: tar cf roulette.tar.gz publish/
|
||||||
|
|
||||||
|
- 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: True
|
||||||
|
- name: Upload Release Asset
|
||||||
|
id: upload-release-asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: ./roulette.tar.gz
|
||||||
|
asset_name: roulette.tar.gz
|
||||||
|
asset_content_type: application/gzip
|
||||||
|
|
Loading…
Reference in a new issue