diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b676754..4b7a473 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,8 +3,22 @@ name: CI on: push: branches: [main] + paths-ignore: + - "**.md" + - "docs/**" pull_request: branches: [main] + paths-ignore: + - "**.md" + - "docs/**" + +permissions: + contents: read + +env: + DOTNET_VERSION: "10.0.x" + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true + DOTNET_CLI_TELEMETRY_OPTOUT: true jobs: build: @@ -16,7 +30,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: "10.0.x" + dotnet-version: ${{ env.DOTNET_VERSION }} - name: Restore dependencies run: dotnet restore @@ -36,7 +50,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: "10.0.x" + dotnet-version: ${{ env.DOTNET_VERSION }} - name: Restore dependencies run: dotnet restore diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 00fd4eb..c1bb5c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,9 @@ on: tags: - "v*" +permissions: + contents: read + jobs: build: runs-on: ${{ matrix.os }}