-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Prepare a 2.1.10 release * Include project path in the command * Rename job name * Define full path to the nuget package * Use git tag value to find a package * Echo package version and the final package directory * use env * Use github_ref * Export to variable * Additional export step * Try to export a different way the version variable * Display the git tag value * Fix YAML * Change the way how a step reads github tag * Extract git tag via different option * Use git tag to determine the package name * Use different library name * Cleanup the flow * Print directory before publish * Escape nuget api key * Use secret directly in the command * Use up to date nuget properties * Remove deprecated option and include icon in the package * Update README.md and csproj with a new icon location * Changelog update * Update CHANGELOG.md Co-authored-by: Sebastian Alex <[email protected]> * Update README.md Co-authored-by: Sebastian Alex <[email protected]> * Add a reference to the pull request --------- Co-authored-by: Sebastian Alex <[email protected]>
- Loading branch information
1 parent
9305311
commit 60fd847
Showing
5 changed files
with
87 additions
and
98 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,31 @@ | ||
name: Publish NuGet Package | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*.*.*" | ||
|
||
jobs: | ||
release: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build ./Backtrace/Backtrace.csproj --no-restore --configuration Release | ||
|
||
- name: Pack | ||
run: dotnet pack ./Backtrace/Backtrace.csproj --configuration Release --no-build -o . | ||
|
||
- name: Publish to NuGet | ||
run: dotnet nuget push Backtrace.${{ github.ref_name }}.nupkg -k "${{ secrets.NUGET_API_KEY }}" -s https://api.nuget.org/v3/index.json |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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