Skip to content

Commit 4fcfa47

Browse files
committed
chore(ci): streamline release workflow by removing unnecessary steps
1 parent d576710 commit 4fcfa47

1 file changed

Lines changed: 8 additions & 16 deletions

File tree

.github/workflows/release-publish.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- name: Checkout code
18-
uses: actions/checkout@v4
19-
with:
20-
fetch-depth: 0
17+
- name: Download release assets
18+
env:
19+
GH_TOKEN: ${{ github.token }}
20+
run: |
21+
gh release download "${{ github.event.release.tag_name }}" \
22+
--pattern "*.nupkg" \
23+
--dir ./artifacts \
24+
--repo "${{ github.repository }}"
2125
2226
- name: Setup .NET
2327
uses: actions/setup-dotnet@v4
@@ -27,18 +31,6 @@ jobs:
2731
9.0.x
2832
10.0.x
2933
30-
- name: Restore dependencies
31-
run: dotnet restore
32-
33-
- name: Build
34-
run: dotnet build --configuration Release --no-restore
35-
36-
- name: Test
37-
run: dotnet test --configuration Release --no-build --verbosity normal
38-
39-
- name: Pack NuGet packages
40-
run: dotnet pack --configuration Release --no-build --output ./artifacts
41-
4234
- name: Verify packages
4335
run: |
4436
echo "Packages to be published:"

0 commit comments

Comments
 (0)