diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 93424a4..c3bfb3d 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -21,21 +21,31 @@ jobs: - name: Setup .NET 6 uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x + dotnet-version: 6.0.x - name: Setup .NET 7 uses: actions/setup-dotnet@v3 with: dotnet-version: 7.0.x + - name: Setup .NET 8 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore + - name: Semantic Release id: semantic - uses: cycjimmy/semantic-release-action@v2 + uses: cycjimmy/semantic-release-action@v3 with: - semantic_version: 18.0.1 + semantic_version: 19.0.5 extra_plugins: | @semantic-release/changelog - @semantic-release/github @semantic-release/git env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -44,4 +54,4 @@ jobs: run: dotnet pack -c Release -o out -p:PackageVersion=${{ steps.semantic.outputs.new_release_version }} -p:RepositoryUrl=${{env.CURRENT_REPO_URL}} - name: Publish the package to nuget.org - run: dotnet nuget push ./out/*.nupkg --skip-duplicate -n -d -k ${{ secrets.NUGET_AUTH_TOKEN}} -s https://api.nuget.org/v3/index.json + run: dotnet nuget push ./out/*.nupkg -n -d -k ${{ secrets.NUGET_AUTH_TOKEN}} -s https://api.nuget.org/v3/index.json \ No newline at end of file diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 97812d1..c8d80b2 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -18,13 +18,18 @@ jobs: - name: Setup .NET 6 uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x + dotnet-version: 6.0.x - name: Setup .NET 7 uses: actions/setup-dotnet@v3 with: dotnet-version: 7.0.x + - name: Setup .NET 8 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + - name: Restore dependencies run: dotnet restore @@ -32,5 +37,4 @@ jobs: run: dotnet build --no-restore - name: Test - run: dotnet test --no-build - \ No newline at end of file + run: dotnet test --no-build \ No newline at end of file