Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
onepiecefreak3 committed Oct 31, 2024
2 parents 40f20c9 + 8518a4a commit f2029de
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- uses: nuget/setup-nuget@v1
- uses: actions/checkout@v4
- uses: nuget/setup-nuget@v2

# Setup the build
- name: Wait for other release builds
uses: softprops/turnstyle@v1
uses: softprops/turnstyle@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
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: |
foreach($file in (Get-ChildItem "nuget" -Recurse -Include *.nupkg)) {
dotnet nuget push $file --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
}

0 comments on commit f2029de

Please sign in to comment.