diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index e6c9353..49bda22 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -19,7 +19,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x - name: Restore dependencies run: dotnet restore - name: Build @@ -36,7 +36,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x - name: Restore dependencies run: dotnet restore - name: Build @@ -48,16 +48,14 @@ jobs: run: | ls ./PdfAValidator/bin/Release dotnet nuget push ./PdfAValidator/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN}} --source https://api.nuget.org/v3/index.json - - uses: marvinpinto/action-automatic-releases@v1.2.1 - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: ${{ env.CURRENT_VERSION }} - prerelease: false - title: "Release Build" - files: | - ./PdfAValidator/bin/Release/*.nupkg - ./PdfAValidator/bin/Release/*.snupkg - + - name: Github Release + shell: bash + env: + GITHUB_TOKEN: ${{ github.TOKEN }} + if: env.GITHUB_TOKEN != '' + run: | + gh release create ${{env.CURRENT_VERSION}} ./PdfAValidator/bin/Release/*.*nupkg --prerelease --generate-notes + deployTest: if: ${{ github.ref == 'refs/heads/main' }} runs-on: ubuntu-latest @@ -67,7 +65,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x - name: Restore dependencies run: dotnet restore - name: Build @@ -79,15 +77,14 @@ jobs: run: | ls ./PdfAValidator/bin/Release dotnet nuget push ./PdfAValidator/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TEST_TOKEN}} --source https://apiint.nugettest.org/v3/index.json - - uses: marvinpinto/action-automatic-releases@v1.2.1 - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest-prerelease" - prerelease: true - title: "Prerelease Build" - files: | - ./PdfAValidator/bin/Release/*.nupkg - ./PdfAValidator/bin/Release/*.snupkg + - name: Github prerelease + shell: bash + env: + GITHUB_TOKEN: ${{ github.TOKEN }} + if: env.GITHUB_TOKEN != '' + run: | + gh release create ${{env.CURRENT_VERSION}} ./PdfAValidator/bin/Release/*.*nupkg --prerelease --generate-notes + deployAzure: if: ${{ github.ref == 'refs/heads/release' || github.ref == 'refs/heads/AzureAppPublishUsingGithubActions'}} @@ -98,7 +95,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x - name: Restore dependencies run: dotnet restore - name: Build diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 653316f..112436f 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -4,6 +4,7 @@ "davidanson.vscode-markdownlint", "redhat.vscode-yaml", "mhutchie.git-graph", - "ms-dotnettools.csharp" + "ms-dotnettools.csharp", + "github.vscode-github-actions" ] } \ No newline at end of file diff --git a/PdfAValidatorTest/PdfAValidatorTest.csproj b/PdfAValidatorTest/PdfAValidatorTest.csproj index cc8a756..3eca218 100644 --- a/PdfAValidatorTest/PdfAValidatorTest.csproj +++ b/PdfAValidatorTest/PdfAValidatorTest.csproj @@ -1,8 +1,8 @@  - net6.0;net48 - net6.0 + net8.0;net6.0;net48 + net8.0;net6.0 false enable 8.0 diff --git a/PdfAValidatorWebApi/PdfAValidatorWebApi.csproj b/PdfAValidatorWebApi/PdfAValidatorWebApi.csproj index fe36bba..9278c75 100644 --- a/PdfAValidatorWebApi/PdfAValidatorWebApi.csproj +++ b/PdfAValidatorWebApi/PdfAValidatorWebApi.csproj @@ -5,7 +5,7 @@ 0.0.1 $(Version) $(Version) - net6.0 + net8.0 true enable 8.0 diff --git a/PdfAValidatorWebApiTest/PdfAValidatorWebApiTest.csproj b/PdfAValidatorWebApiTest/PdfAValidatorWebApiTest.csproj index 64ab7be..ff5d0cf 100644 --- a/PdfAValidatorWebApiTest/PdfAValidatorWebApiTest.csproj +++ b/PdfAValidatorWebApiTest/PdfAValidatorWebApiTest.csproj @@ -1,6 +1,6 @@  - net6.0 + net8.0 false enable 8.0