Skip to content

Commit cf65082

Browse files
committed
Initial SDK scaffold
0 parents  commit cf65082

131 files changed

Lines changed: 19285 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "nuget" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+
groups:
13+
all:
14+
patterns:
15+
- "*"
16+
- package-ecosystem: "github-actions"
17+
directory: "/"
18+
schedule:
19+
interval: "weekly"
20+
groups:
21+
github-actions:
22+
patterns:
23+
- "*"

.github/workflows/auto-merge.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Auto-approve and auto-merge bot pull requests
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
auto-merge:
13+
uses: tryAGI/workflows/.github/workflows/auto-merge.yml@main
14+
secrets: inherit

.github/workflows/auto-update.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Opens a new PR if there are OpenAPI updates
2+
on:
3+
schedule:
4+
- cron: '0 */3 * * *'
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
actions: write
11+
12+
jobs:
13+
auto-update:
14+
uses: tryAGI/workflows/.github/workflows/auto-update.yml@main
15+
with:
16+
library-path: src/libs/APITemplate
17+
secrets: inherit

.github/workflows/dotnet.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Publish
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags:
7+
- v**
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
publish:
14+
name: Publish
15+
uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main
16+
with:
17+
generate-build-number: false
18+
conventional-commits-publish-conditions: false
19+
enable-caching: false
20+
additional-test-arguments: '--logger GitHubActions'
21+
secrets:
22+
nuget-key: ${{ secrets.NUGET_KEY }}
23+
24+
trim-check:
25+
name: Trimming Check
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v6
30+
31+
- name: Setup .NET
32+
uses: actions/setup-dotnet@v5
33+
34+
- name: Install AutoSDK CLI
35+
run: dotnet tool install --global autosdk.cli --prerelease
36+
37+
- name: Run trimming check
38+
run: autosdk trim src/libs/APITemplate/APITemplate.csproj
39+
40+
release:
41+
name: Release
42+
runs-on: ubuntu-latest
43+
needs: [publish]
44+
if: startsWith(github.ref, 'refs/tags/v')
45+
steps:
46+
- name: Checkout
47+
uses: actions/checkout@v6
48+
49+
- name: Create release
50+
run: gh release create ${{ github.ref_name }}
51+
--title "${{ github.ref_name }}"
52+
--generate-notes
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/mkdocs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: MKDocs Deploy
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'docs/**'
9+
- 'mkdocs.yml'
10+
- 'autosdk.docs.json'
11+
- '.github/workflows/mkdocs.yml'
12+
- 'src/tests/IntegrationTests/**'
13+
- 'README.md'
14+
15+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
16+
permissions:
17+
contents: read
18+
pages: write
19+
id-token: write
20+
21+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
23+
concurrency:
24+
group: "pages"
25+
cancel-in-progress: false
26+
27+
jobs:
28+
deploy:
29+
uses: tryAGI/workflows/.github/workflows/mkdocs-pages.yml@main
30+
secrets: inherit

.github/workflows/pull-request.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Test
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
jobs:
8+
test:
9+
name: Test
10+
if: github.event.pull_request.draft == false
11+
uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main
12+
with:
13+
generate-build-number: false
14+
conventional-commits-publish-conditions: false
15+
enable-caching: false
16+
additional-test-arguments: '--logger GitHubActions'

0 commit comments

Comments
 (0)