From ce7a09a37697d2b1a6eaccdc65b5444946537a25 Mon Sep 17 00:00:00 2001 From: realonepiecefreak Date: Sun, 27 Oct 2024 21:39:21 +0100 Subject: [PATCH 1/6] Update release.yml --- .github/workflows/release.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b914c82..2d5f8e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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>\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>\s*$' + # TAG_FORMAT: '*' + # NUGET_KEY: ${{secrets.NUGET_API_KEY}} From c850816552d1df897f520ccdaf285ac4598212e7 Mon Sep 17 00:00:00 2001 From: realonepiecefreak Date: Sun, 27 Oct 2024 21:47:47 +0100 Subject: [PATCH 2/6] Update release.yml --- .github/workflows/release.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d5f8e2..0f107d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,12 +11,10 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - uses: nuget/setup-nuget@v1 # Setup the build - name: Wait for other release builds - uses: softprops/turnstyle@v1 + uses: softprops/turnstyle@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -31,15 +29,4 @@ jobs: - name: Publish ImGui.Forms 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>\s*$' - # TAG_FORMAT: '*' - # NUGET_KEY: ${{secrets.NUGET_API_KEY}} + 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 From 8bf9e7d19d12a23f62a95b788357238ed0f293e1 Mon Sep 17 00:00:00 2001 From: realonepiecefreak Date: Sun, 27 Oct 2024 21:52:07 +0100 Subject: [PATCH 3/6] Update release.yml --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f107d8..7ad0f1d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,8 @@ jobs: runs-on: windows-latest steps: + - uses: actions/checkout@v2 + - uses: nuget/setup-nuget@v1 # Setup the build - name: Wait for other release builds @@ -23,6 +25,8 @@ jobs: with: dotnet-version: 8.0.303 + - name: Checkout imGui.Forms + - name: Build ImGui.Forms run: | dotnet pack --configuration Release --output nuget From ef07b736bbce46df78b3fe1b7eca23818642e60e Mon Sep 17 00:00:00 2001 From: realonepiecefreak Date: Sun, 27 Oct 2024 21:53:18 +0100 Subject: [PATCH 4/6] Update release.yml --- .github/workflows/release.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ad0f1d..1d03c10 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,8 +25,6 @@ jobs: with: dotnet-version: 8.0.303 - - name: Checkout imGui.Forms - - name: Build ImGui.Forms run: | dotnet pack --configuration Release --output nuget From d076e62f33594afe79d8a711cce8232aff3876ac Mon Sep 17 00:00:00 2001 From: realonepiecefreak Date: Sun, 27 Oct 2024 21:57:27 +0100 Subject: [PATCH 5/6] Update release.yml --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d03c10..1a54fe6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,4 +31,6 @@ jobs: - name: Publish ImGui.Forms 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 + 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 + } From 8518a4ada692716487c74de000519b6756b61244 Mon Sep 17 00:00:00 2001 From: realonepiecefreak Date: Sun, 27 Oct 2024 22:03:16 +0100 Subject: [PATCH 6/6] Update release.yml --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a54fe6..bf278ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,8 +11,8 @@ 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 @@ -21,7 +21,7 @@ jobs: 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