FFMpegCore/.github/workflows/release.yml

24 lines
577 B
YAML
Raw Normal View History

2020-02-21 17:36:12 +01:00
name: NuGet release
on:
2020-05-13 00:07:18 +02:00
push:
2020-02-21 17:36:12 +01:00
branches:
- release
jobs:
2020-02-21 17:57:12 +01:00
release:
2020-02-21 17:36:12 +01:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Prepare FFMpeg
run: sudo apt-get update && sudo apt-get install -y ffmpeg
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
2020-05-13 00:07:18 +02:00
dotnet-version: 3.1
2020-02-21 17:36:12 +01:00
- name: Build solution -c Release
run: dotnet build
- name: Run unit tests
run: dotnet test
- name: Publish NuGet package
2020-10-27 01:11:46 +01:00
run: dotnet nuget push "FFMpegCore/bin/Release/*.nupkg" --skip-duplicate
2020-02-21 17:36:12 +01:00