From 721e03eaedcd54d040e281b44ac2aa59a835b870 Mon Sep 17 00:00:00 2001 From: Thomas Ardal Date: Fri, 24 Nov 2023 11:44:19 +0100 Subject: [PATCH] Bump version to 5.1 and build on .NET 8 --- .github/workflows/ci.yml | 30 ++++++++++++++-------------- src/Elmah.Io.Cli/Elmah.Io.Cli.csproj | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5003622..80f710b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,30 +9,30 @@ on: jobs: build: runs-on: ubuntu-latest - + steps: - name: Checkout repository - uses: actions/checkout@v2 - + uses: actions/checkout@v4 + - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x - name: Install dependencies run: dotnet restore - name: Build win-x64 - run: dotnet publish src/Elmah.Io.Cli/Elmah.Io.Cli.csproj -c Release --runtime win-x64 --self-contained -o elmahio-win-x64 /p:AssemblyVersion=5.0.${{ github.run_number }} - + run: dotnet publish src/Elmah.Io.Cli/Elmah.Io.Cli.csproj -c Release --runtime win-x64 --self-contained -o elmahio-win-x64 /p:AssemblyVersion=5.1.${{ github.run_number }} + - name: Build linux-x64 - run: dotnet publish src/Elmah.Io.Cli/Elmah.Io.Cli.csproj -c Release --runtime linux-x64 --self-contained -o elmahio-linux-x64 /p:AssemblyVersion=5.0.${{ github.run_number }} - + run: dotnet publish src/Elmah.Io.Cli/Elmah.Io.Cli.csproj -c Release --runtime linux-x64 --self-contained -o elmahio-linux-x64 /p:AssemblyVersion=5.1.${{ github.run_number }} + - name: Build osx-x64 - run: dotnet publish src/Elmah.Io.Cli/Elmah.Io.Cli.csproj -c Release --runtime osx-x64 --self-contained -o elmahio-osx-x64 /p:AssemblyVersion=5.0.${{ github.run_number }} + run: dotnet publish src/Elmah.Io.Cli/Elmah.Io.Cli.csproj -c Release --runtime osx-x64 --self-contained -o elmahio-osx-x64 /p:AssemblyVersion=5.1.${{ github.run_number }} - name: Pack .NET Core tool - run: dotnet pack -c Release src/Elmah.Io.Cli/Elmah.Io.Cli.csproj /p:Version=5.0.${{ github.run_number }} + run: dotnet pack -c Release src/Elmah.Io.Cli/Elmah.Io.Cli.csproj /p:Version=5.1.${{ github.run_number }} - name: Pack executables shell: bash @@ -51,10 +51,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: 5.0.${{ github.run_number }} - release_name: Release 5.0.${{ github.run_number }} + tag_name: 5.1.${{ github.run_number }} + release_name: Release 5.1.${{ github.run_number }} draft: false - + - name: Upload elmahio-win-x64.zip if: ${{ github.event_name == 'push' }} uses: actions/upload-release-asset@v1.0.2 @@ -89,5 +89,5 @@ jobs: asset_content_type: application/gzip - name: Push to nuget.org - run: dotnet nuget push src/Elmah.Io.Cli/nupkg/Elmah.Io.Cli.5.0.${{ github.run_number }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json + run: dotnet nuget push src/Elmah.Io.Cli/nupkg/Elmah.Io.Cli.5.1.${{ github.run_number }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json if: ${{ github.event_name == 'push' }} diff --git a/src/Elmah.Io.Cli/Elmah.Io.Cli.csproj b/src/Elmah.Io.Cli/Elmah.Io.Cli.csproj index 204f525..537906a 100644 --- a/src/Elmah.Io.Cli/Elmah.Io.Cli.csproj +++ b/src/Elmah.Io.Cli/Elmah.Io.Cli.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net6.0;net8.0 elmahio win-x64;linux-x64;osx-x64 x64