mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Merge pull request #38 from rosenbjerg/master
FFMpegCore v1.1.0
Former-commit-id: e877ba37fc
This commit is contained in:
commit
8d5bdc6af1
2 changed files with 28 additions and 2 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -1,7 +1,7 @@
|
|||
name: CI
|
||||
on: [push, pull_request]
|
||||
on: push
|
||||
jobs:
|
||||
build:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
|
26
.github/workflows/release.yml
vendored
Normal file
26
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: NuGet release
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- release
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Prepare FFMpeg
|
||||
if: github.event.pull_request.merged == false
|
||||
run: sudo apt-get update && sudo apt-get install -y ffmpeg
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 3.1.101
|
||||
- name: Build solution -c Release
|
||||
run: dotnet build
|
||||
- name: Run unit tests
|
||||
if: github.event.pull_request.merged == false
|
||||
run: dotnet test
|
||||
- name: Publish NuGet package
|
||||
if: github.event.pull_request.merged == true
|
||||
run: NUPKG=`find . -type f -name FFMpegCore*.nupkg` && dotnet nuget push $NUPKG -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json
|
||||
|
Loading…
Reference in a new issue