-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47ede38
commit eef77b1
Showing
10 changed files
with
152 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
release: | ||
- base-branch: 'main' | ||
|
||
PR: | ||
- base-branch: [ 'main', 'development' ] | ||
|
||
github_actions: | ||
- changed-files: | ||
- any-glob-to-any-file: '.github/workflows/**' | ||
|
||
documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: [ 'docs/**', 'documentation/**' ] | ||
|
||
dotnet: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/*.cs' | ||
|
||
update: | ||
- changed-files: | ||
- any-glob-to-any-file: 'src/Directory.Build.props' | ||
|
||
NuGet: | ||
- changed-files: | ||
- any-glob-to-any-file: [ 'src/OpenApi.Client/**', 'src/Directory.Packages.props' ] | ||
|
||
dependencies: | ||
- changed-files: | ||
- any-glob-to-any-file: [ 'src/Directory.Packages.props' ] | ||
|
||
source-generators: | ||
- changed-files: | ||
- any-glob-to-any-file: [ 'src/OpenApi.Client.SourceGenerators/**' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: openapi-client-cd-nuget | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: microsoft/[email protected] | ||
with: | ||
msbuild-architecture: x64 | ||
- uses: nuget/setup-nuget@v2 | ||
with: | ||
nuget-api-key: ${{ secrets.NUGET_API_KEY }} | ||
- name: Setup .NET Core SDK 8.x | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.x | ||
|
||
- name: Install dependencies | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build src\OpenApi.Client\OpenApi.Client.csproj --configuration Release --no-restore | ||
|
||
- name: Publish the package to NuGet.org | ||
run: nuget push **\*.nupkg -NonInteractive -SkipDuplicate -Source 'https://api.nuget.org/v3/index.json' | ||
|
||
- name: Publish the symbols to NuGet.org | ||
run: nuget push **\*.snupkg -NonInteractive -SkipDuplicate -Source 'https://api.nuget.org/v3/index.json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: openapi-client-labeler | ||
|
||
on: | ||
- pull_request_target | ||
|
||
jobs: | ||
triage: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v5 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: openapi-client-pr-validator | ||
|
||
on: | ||
pull_request: | ||
branches: [development] | ||
push: | ||
branches: [development] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: microsoft/[email protected] | ||
with: | ||
msbuild-architecture: x64 | ||
- uses: nuget/setup-nuget@v2 | ||
with: | ||
nuget-api-key: ${{ secrets.NUGET_API_KEY }} | ||
- name: Setup .NET Core SDK 8.x | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.x | ||
|
||
- name: Install dependencies | ||
run: dotnet restore | ||
|
||
- name: Build | ||
run: dotnet build src\OpenApi.Client\OpenApi.Client.csproj --configuration Release --no-restore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters