Skip to content

Commit

Permalink
feat(ci): ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ProbablePrime committed Dec 15, 2023
1 parent d0cad5c commit 2f75d82
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: .NET Core CI
on:
push:
paths-ignore:
- '**/*.md'
branches:
- master
pull_request:
branches:
- master
paths-ignore:
- '**/*.md'

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Build with dotnet
run: dotnet build --configuration Release
24 changes: 24 additions & 0 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Nuget Package
on:
release:
types: [published]
branches:
- master

jobs:
build:
runs-on: windows-latest
env:
VERSION: ${{ github.event.release.tag_name }}
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Build with dotnet
run: dotnet build OggVorbisEncoder --configuration Release -p:Version=${{ env.VERSION }}
- name: Pack nuget Package
run: dotnet pack OggVorbisEncoder --configuration Release -p:Version=${{ env.VERSION }} --output nupkgs
- name: Push package to nuget
run: dotnet nuget push nupkgs\*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json

0 comments on commit 2f75d82

Please sign in to comment.