Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
onepiecefreak3 authored Oct 27, 2024
1 parent e58f9b8 commit ce7a09a
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,21 @@ jobs:
with:
dotnet-version: 8.0.303

# Upload ImGui.Forms to nuget.org
- name: Build ImGui.Forms
run: |
dotnet pack --configuration Release --output nuget
- name: Publish ImGui.Forms
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: ImGui.Forms/ImGui.Forms.csproj
VERSION_FILE_PATH: ImGui.Forms/ImGui.Forms.nuspec
VERSION_REGEX: '^\s*<version>(.*)<\/version>\s*$'
TAG_FORMAT: '*'
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
run: |
for %f in (*.nupkg) do
dotnet nuget push %f --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
# Upload ImGui.Forms to nuget.org
#- name: Publish ImGui.Forms
# uses: brandedoutcast/publish-nuget@v2
# with:
# PROJECT_FILE_PATH: ImGui.Forms/ImGui.Forms.csproj
# VERSION_FILE_PATH: ImGui.Forms/ImGui.Forms.nuspec
# VERSION_REGEX: '^\s*<version>(.*)<\/version>\s*$'
# TAG_FORMAT: '*'
# NUGET_KEY: ${{secrets.NUGET_API_KEY}}

0 comments on commit ce7a09a

Please sign in to comment.