Skip to content

Commit

Permalink
ci(.github/workflows/soraplugin-nuget-push.yml): add
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyungent committed Feb 11, 2023
1 parent da7da36 commit fed4a10
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/SoraPlugin-nuget-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: SoraPlugin NuGet Push

on:
push:
tags:
- 'SoraPlugin-v*'

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v1

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100

- name: Build and Pack
run: |
cd ./plugins/SoraPlugin
dotnet build --configuration Release
dotnet pack --configuration Release
dotnet pack --configuration Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
ls
ls ./bin/Release/
- name: Install Nuget
uses: nuget/setup-nuget@v1
with:
nuget-version: '5.x'

- name: Add private GitHub registry to NuGet
run: |
nuget sources add -name github -Source https://nuget.pkg.github.com/yiyungent/index.json -Username yiyungent -Password ${{ secrets.GITHUB_TOKEN }}
- name: Push generated package to GitHub registry and NuGet
run: |
nuget push .\plugins\SoraPlugin\bin\Release\*.nupkg -Source github -SkipDuplicate
nuget push .\plugins\SoraPlugin\bin\Release\*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.PLUGINCORE_NUGET_KEY }}

0 comments on commit fed4a10

Please sign in to comment.