From 1fba8dd3a5a36bb960f4003c4896c4d78ed9e6fe Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 6 Mar 2025 21:05:53 +1100 Subject: [PATCH 01/10] test path --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d65faa5..7655540 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: push: branches: - - main + - '*' tags: - '*' @@ -51,6 +51,7 @@ jobs: - name: Get Package Version # if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: | + pwd $version = [system.diagnostics.fileversioninfo]::getversioninfo("Flow.Launcher.Localization\bin\Release\netstandard2.0\Flow.Launcher.Localization.dll").productversion echo "release_version=$version" | out-file -filepath $env:github_env -encoding utf-8 -append From 1b7738104a90cd5d850f6868335973a87ba0cd76 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 6 Mar 2025 21:10:38 +1100 Subject: [PATCH 02/10] Update publish.yml --- .github/workflows/publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7655540..1321453 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -40,7 +40,10 @@ jobs: # Pack the NuGet package - name: Create NuGet package - run: dotnet pack ${{ env.Project_Path }} --configuration Release --no-build --output nupkgs + run: | + pwd + dir + dotnet pack ${{ env.Project_Path }} --configuration Release --no-build --output nupkgs # # Publish to NuGet.org # - name: Push to NuGet From 71e33d2ef946ce39ea89a2c7f8537da142673307 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 6 Mar 2025 21:18:33 +1100 Subject: [PATCH 03/10] Update publish.yml --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1321453..e0cdf5b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -42,7 +42,7 @@ jobs: - name: Create NuGet package run: | pwd - dir + dir .\\nupkgs\ dotnet pack ${{ env.Project_Path }} --configuration Release --no-build --output nupkgs # # Publish to NuGet.org @@ -63,5 +63,5 @@ jobs: # if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v1 with: - files: "nupkgs\\*.nupkg" + files: ".\\nupkgs\\*.nupkg" tag_name: "v${{ env.release_version }}" From 01c4727c620c838f602aae2291453262d75dcf3a Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 6 Mar 2025 21:23:01 +1100 Subject: [PATCH 04/10] Update publish.yml --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e0cdf5b..35d683b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -42,8 +42,9 @@ jobs: - name: Create NuGet package run: | pwd - dir .\\nupkgs\ + ls . dotnet pack ${{ env.Project_Path }} --configuration Release --no-build --output nupkgs + dir .\\nupkgs\ # # Publish to NuGet.org # - name: Push to NuGet From 9a1e5166ba5db5c0a6106ae07f27da69f9c2bc7d Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 6 Mar 2025 21:32:22 +1100 Subject: [PATCH 05/10] Update publish.yml --- .github/workflows/publish.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 35d683b..e587a19 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -41,10 +41,9 @@ jobs: # Pack the NuGet package - name: Create NuGet package run: | - pwd - ls . + Get-ChildItem -Path .\ dotnet pack ${{ env.Project_Path }} --configuration Release --no-build --output nupkgs - dir .\\nupkgs\ + Get-ChildItem -Path .\nupkgs\ # # Publish to NuGet.org # - name: Push to NuGet From 1596d22f3fc4a1bb4ef0e51a1c343a241dbacebb Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 6 Mar 2025 21:51:40 +1100 Subject: [PATCH 06/10] Update publish.yml --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e587a19..6fda480 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -63,5 +63,5 @@ jobs: # if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v1 with: - files: ".\\nupkgs\\*.nupkg" + files: "\\*\\*.nupkg" tag_name: "v${{ env.release_version }}" From 526427674761202067d37bbb0fec27b9dba7e1f0 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 6 Mar 2025 21:55:18 +1100 Subject: [PATCH 07/10] Update publish.yml --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6fda480..6337a6b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -63,5 +63,5 @@ jobs: # if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v1 with: - files: "\\*\\*.nupkg" + files: "D:\\a\\Flow.Launcher.Localization\\Flow.Launcher.Localization\nupkgs\\Flow.Launcher.Localization.0.0.1.nupkg" tag_name: "v${{ env.release_version }}" From 3bcd9f67e4fd735707677007047bc0e3024b3217 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 6 Mar 2025 22:07:55 +1100 Subject: [PATCH 08/10] Update publish.yml --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6337a6b..04e05c9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -63,5 +63,5 @@ jobs: # if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v1 with: - files: "D:\\a\\Flow.Launcher.Localization\\Flow.Launcher.Localization\nupkgs\\Flow.Launcher.Localization.0.0.1.nupkg" + files: "nupkgs/*.nupkg" tag_name: "v${{ env.release_version }}" From 5fab359bf4a1a722cd65d9534b3676d76a92cc10 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 6 Mar 2025 22:12:21 +1100 Subject: [PATCH 09/10] Update publish.yml --- .github/workflows/publish.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 04e05c9..a53d5c1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,8 +3,6 @@ name: publish on: workflow_dispatch: push: - branches: - - '*' tags: - '*' @@ -41,9 +39,7 @@ jobs: # Pack the NuGet package - name: Create NuGet package run: | - Get-ChildItem -Path .\ dotnet pack ${{ env.Project_Path }} --configuration Release --no-build --output nupkgs - Get-ChildItem -Path .\nupkgs\ # # Publish to NuGet.org # - name: Push to NuGet @@ -54,7 +50,6 @@ jobs: - name: Get Package Version # if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: | - pwd $version = [system.diagnostics.fileversioninfo]::getversioninfo("Flow.Launcher.Localization\bin\Release\netstandard2.0\Flow.Launcher.Localization.dll").productversion echo "release_version=$version" | out-file -filepath $env:github_env -encoding utf-8 -append From 6822152ae905a969464bd145fdf75de5769dd232 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 6 Mar 2025 22:13:24 +1100 Subject: [PATCH 10/10] Update publish.yml --- .github/workflows/publish.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a53d5c1..9aa026b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,8 +38,7 @@ jobs: # Pack the NuGet package - name: Create NuGet package - run: | - dotnet pack ${{ env.Project_Path }} --configuration Release --no-build --output nupkgs + run: dotnet pack ${{ env.Project_Path }} --configuration Release --no-build --output nupkgs # # Publish to NuGet.org # - name: Push to NuGet