Create dotnetcore.yml

This commit is contained in:
devbotas
2021-12-11 11:23:46 +02:00
committed by GitHub
parent 028b9be682
commit 23de72880e

38
.github/workflows/dotnetcore.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: dotnetcore
on:
push:
tags:
- "Versions/*"
workflow_dispatch:
jobs:
build:
env:
BUILD_CONFIG: 'Release'
SOLUTION: 'St7735.sln'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
- name: Restore dependencies
run: nuget restore $SOLUTION
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build
run: dotnet build $SOLUTION --configuration $BUILD_CONFIG --no-restore
- name: Publish to Nuget.org
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
- name: Publish to Tevux Packages
run: nuget push **\*.nupkg -Source 'https://nuget.pkg.github.com/tevux-tech/index.json' -ApiKey ${{secrets.GITHUB_TOKEN}}