diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 31ea9c5..151f9c3 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,4 @@ +--- version: 2 updates: - package-ecosystem: "nuget" diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml index 10dad8f..cb29e48 100644 --- a/.github/workflows/cla.yaml +++ b/.github/workflows/cla.yaml @@ -17,4 +17,4 @@ jobs: - uses: "authzed/actions/cla-check@main" with: github_token: "${{ secrets.GITHUB_TOKEN }}" - cla_assistant_token: "${{ secrets.CLA_ASSISTANT_ACCESS_TOKEN }}" \ No newline at end of file + cla_assistant_token: "${{ secrets.CLA_ASSISTANT_ACCESS_TOKEN }}" diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index b242425..25142c0 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,5 +1,7 @@ +--- +# yamllint disable rule:line-length name: "Publish to Nuget" -on: +on: # yamllint disable-line rule:truthy release: types: - "published" @@ -8,20 +10,20 @@ jobs: name: "Publish to Nuget" runs-on: "ubuntu-latest" steps: - - uses: "actions/checkout@v4" - - uses: "actions/setup-dotnet@v4" - with: - dotnet-version: '8.x' - # Store the version, stripping any v-prefix - # This lets us use v-prefixed releases - - name: Write release version - run: | - VERSION=${GITHUB_REF_NAME#v} - echo Version: $VERSION - echo "VERSION=$VERSION" >> $GITHUB_ENV - - name: "Pack the project" - working-directory: "src/Authzed.Net" - run: "dotnet pack -c Release -o dist -p:PackageVersion=${VERSION} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:ContinuousIntegrationBuild=true" - - name: "Publish to Nuget" - working-directory: "src/Authzed.Net/dist" - run: 'dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k "${{ secrets.NUGET_API_KEY }}" --skip-duplicate' + - uses: "actions/checkout@v4" + - uses: "actions/setup-dotnet@v4" + with: + dotnet-version: '8.x' + # Store the version, stripping any v-prefix + # This lets us use v-prefixed releases + - name: Write release version + run: | + VERSION=${GITHUB_REF_NAME#v} + echo Version: $VERSION + echo "VERSION=$VERSION" >> $GITHUB_ENV + - name: "Pack the project" + working-directory: "src/Authzed.Net" + run: "dotnet pack -c Release -o dist -p:PackageVersion=${VERSION} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:ContinuousIntegrationBuild=true" + - name: "Publish to Nuget" + working-directory: "src/Authzed.Net/dist" + run: 'dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k "${{ secrets.NUGET_API_KEY }}" --skip-duplicate' diff --git a/buf.gen.yaml b/buf.gen.yaml index 9171084..a520444 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,3 +1,5 @@ +--- +# yamllint disable rule:line-length version: "v2" plugins: - protoc_builtin: "csharp"