Skip to content

Commit 8423398

Browse files
committed
chore: use reusable SDK workflows
1 parent 61903c7 commit 8423398

2 files changed

Lines changed: 8 additions & 39 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,50 +5,19 @@ on:
55
- main
66
tags:
77
- v**
8+
workflow_dispatch:
89

910
permissions:
1011
contents: write
1112

1213
jobs:
1314
publish:
1415
name: Publish
15-
uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main
16+
uses: tryAGI/workflows/.github/workflows/generated-sdk-publish.yml@main
1617
with:
17-
generate-build-number: false
18-
conventional-commits-publish-conditions: false
18+
project-path: src/libs/Firecrawl/Firecrawl.csproj
19+
dotnet-version: 10.0.x
1920
enable-caching: false
2021
additional-test-arguments: '--logger GitHubActions'
2122
secrets:
2223
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/Firecrawl/Firecrawl.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/pull-request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
test:
99
name: Test
1010
if: github.event.pull_request.draft == false
11-
uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main
11+
uses: tryAGI/workflows/.github/workflows/generated-sdk-pull-request.yml@main
1212
with:
13-
generate-build-number: false
14-
conventional-commits-publish-conditions: false
13+
project-path: src/libs/Firecrawl/Firecrawl.csproj
14+
dotnet-version: 10.0.x
1515
enable-caching: false
16-
additional-test-arguments: '--logger GitHubActions'
16+
additional-test-arguments: '--logger GitHubActions'

0 commit comments

Comments
 (0)