-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(.github/workflows): duplicatiPlugin-*.yml
- Loading branch information
Showing
2 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: DuplicatiPlugin NuGet Push | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'DuplicatiPlugin-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/DuplicatiPlugin | ||
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\DuplicatiPlugin\bin\Release\*.nupkg -Source github -SkipDuplicate | ||
nuget push .\plugins\DuplicatiPlugin\bin\Release\*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.PLUGINCORE_NUGET_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters