Update ci.yml

This commit is contained in:
Andreas 2020-02-17 20:04:48 +01:00 committed by GitHub
parent 24bfffa7fa
commit fb36bf8dff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,8 @@ on: [push]
jobs:
build:
env:
dotnet_ver: 3.1
runs-on: ubuntu-latest
@ -13,12 +15,18 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Build with dotnet
- name: Build linux-x64
run: dotnet publish -c debug -r linux-x64 /p:PublishSingleFile=true
- name: Build linux-arm
run: dotnet publish -c debug -r linux-arm /p:PublishSingleFile=true
- name: Build win-x64
run: dotnet publish -c debug -r win-x64 /p:PublishSingleFile=true /p:PublishReadyToRun=true
- name: Build osx-64
run: dotnet publish -c debug -r osx-x64 /p:PublishSingleFile=true
- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
with:
# Artifact name
name: RSSBot-Nightly
name: RSSBot-linux-x64-$GITHUB_SHA
# Directory containing files to upload
path: bin/Debug/netcoreapp3.1/linux-x64/publish/
path: bin/Debug/netcoreapp$dotnet_ver/linux-x64/publish/