FFMpegCore/.github/workflows/release.yml

24 lines
529 B
YAML
Raw Normal View History

2020-02-21 16:36:12 +00:00
name: NuGet release
on:
2020-05-12 22:07:18 +00:00
push:
2020-02-21 16:36:12 +00:00
branches:
- release
jobs:
2020-02-21 16:57:12 +00:00
release:
2020-02-21 16:36:12 +00:00
runs-on: ubuntu-latest
steps:
2020-12-05 23:53:11 +00:00
- name: Checkout
2023-01-29 21:55:47 +00:00
uses: actions/checkout@v3
2020-12-07 21:00:43 +00:00
- name: Prepare .NET
2023-01-29 21:55:47 +00:00
uses: actions/setup-dotnet@v3
2020-12-07 21:00:43 +00:00
with:
2023-01-29 21:55:47 +00:00
dotnet-version: '7.0.x'
2020-10-28 18:49:39 +00:00
- name: Build solution
2023-01-29 21:55:47 +00:00
run: dotnet pack FFMpegCore.sln --output build -c Release
2020-02-21 16:36:12 +00:00
- name: Publish NuGet package
2023-01-29 21:55:47 +00:00
run: dotnet nuget push build/*.nupkg --source nuget.org --api-key ${{ secrets.NUGET_TOKEN }}
2020-02-21 16:36:12 +00:00