-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from Ellerbach/fix-release-pipeline
Fix release pipeline
- Loading branch information
Showing
3 changed files
with
20 additions
and
16 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
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 |
---|---|---|
|
@@ -8,30 +8,32 @@ on: | |
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
|
||
# Checkout sources. Depth=0 is for using GitVersion | ||
steps: | ||
# Checkout sources. Depth=0 is for using GitVersion | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# Install and Setup GitVersion | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.x | ||
|
||
# Install and Setup GitVersion | ||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '6.x' | ||
- name: Use GitVersion | ||
versionSpec: '5.x' | ||
|
||
# Step id is used as reference for the output values | ||
- name: Use GitVersion to determine the version | ||
id: gitversion | ||
uses: gittools/actions/gitversion/[email protected] | ||
|
||
# Setup .NET 8 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.x | ||
|
||
useConfigFile: true | ||
# Build the tools & create the zip-file and nuget packages | ||
# Chocolatey tools are in .\tools. NuGet packages in .\artifacts | ||
- name: Build & Package | ||
|
@@ -74,4 +76,5 @@ jobs: | |
run: | | ||
foreach($file in (Get-ChildItem "./artifacts" -Recurse -Include *.nupkg)) { | ||
dotnet nuget push $file --api-key "${{ secrets.NUGET_TOOLS }}" --source https://api.nuget.org/v3/index.json --skip-duplicate | ||
} | ||
} | ||
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