From 46e37f72bc69d26b0d21c1f5cec31b90572483db Mon Sep 17 00:00:00 2001 From: Erik Ejlskov Jensen Date: Wed, 10 Jan 2024 13:27:13 +0100 Subject: [PATCH] Add CLI release pipeline --- .github/workflows/cli-release.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/cli-tool.yml | 7 ------- 2 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/cli-release.yml diff --git a/.github/workflows/cli-release.yml b/.github/workflows/cli-release.yml new file mode 100644 index 000000000..3ea2301fe --- /dev/null +++ b/.github/workflows/cli-release.yml @@ -0,0 +1,28 @@ +name: CLI Tool + +on: + workflow_dispatch: + +env: + VERSION: ${{ github.run_number }} + +jobs: + build: + runs-on: windows-2022 + + steps: + - uses: actions/checkout@v4 + + - name: Package CLI 6 + run: dotnet pack src\GUI\efcpt.6\efcpt.6.csproj -p:PackageVersion=6.1.${{ env.VERSION }} -p:InformationalVersion=6.1.${{ env.VERSION }} + + - name: Package CLI 7 + run: dotnet pack src\GUI\efcpt.7\efcpt.7.csproj -p:PackageVersion=7.1.${{ env.VERSION }} -p:InformationalVersion=7.1.${{ env.VERSION }} + + - name: Package CLI 8 + run: dotnet pack src\GUI\efcpt.8\efcpt.8.csproj -p:PackageVersion=8.1.${{ env.VERSION }} -p:InformationalVersion=8.1.${{ env.VERSION }} + + - name: Publish NuGet + if: startsWith(github.ref, 'refs/heads/master') + run: dotnet nuget push **\*.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{ secrets.NUGET }} --skip-duplicate + \ No newline at end of file diff --git a/.github/workflows/cli-tool.yml b/.github/workflows/cli-tool.yml index 8f497ee2c..f19916f99 100644 --- a/.github/workflows/cli-tool.yml +++ b/.github/workflows/cli-tool.yml @@ -32,13 +32,6 @@ jobs: run: dotnet test src\GUI\NUnitTestCore\NUnitTestCore.csproj continue-on-error: false - - name: Publish artifacts - uses: actions/upload-artifact@v4 - with: - name: CLI Tool - path: | - **/*.nupkg - - name: Publish NuGet if: startsWith(github.ref, 'refs/heads/master') run: dotnet nuget push **\*.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{ secrets.NUGET }} --skip-duplicate