diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 86605aa..15ad305 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Build - run: dotnet build --configuration Release --output /var/build + run: dotnet build --configuration Release - name: Upload build result uses: actions/upload-artifact@v4 with: @@ -30,4 +30,4 @@ jobs: with: name: build - name: Test - run: dotnet test --configuration Release --no-build /var/build + run: dotnet test --configuration Release diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 70a71c3..9bb5a32 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,11 +2,9 @@ name: Publish to nuget.org on: workflow_run: workflows: ["Check code quality"] + branches: ["v[0-9]+.[0-9]+.[0-9]+"] types: - completed - push: - tags: - - "v[0-9]+.[0-9]+.[0-9]+" jobs: publish: runs-on: ubuntu-latest diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index 2915300..cb06131 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -1,7 +1,5 @@ name: Check code quality on: - push: - pull_request: workflow_run: workflows: ["Build and test"] types: diff --git a/src/UnitTests/RxTelegram.Bot.UnitTests.csproj b/src/UnitTests/RxTelegram.Bot.UnitTests.csproj index e832ea1..6414d35 100644 --- a/src/UnitTests/RxTelegram.Bot.UnitTests.csproj +++ b/src/UnitTests/RxTelegram.Bot.UnitTests.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 false