Skip to content

Commit 63c826c

Browse files
committed
Fix release workflow.
1 parent 40a8cfd commit 63c826c

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ jobs:
5454
name: nupkgs
5555
path: artifacts/*.nupkg
5656

57-
# --- Next Version ---
57+
# --- Analyzer Rules and Next Version ---
58+
59+
- name: Move analyzer rules
60+
run: ./build.cmd move-analyzer-rules --version v${{ steps.version.outputs.VERSION }}
5861

5962
- name: Generate changelog
6063
run: ./build.cmd docs-generate --stable
@@ -67,7 +70,7 @@ jobs:
6770
- name: Commit changes
6871
uses: EndBug/add-and-commit@v9
6972
with:
70-
message: "Set next BenchmarkDotNet version: ${{ steps.version.outputs.VERSION }}"
73+
message: "Set next BenchmarkDotNet version: ${{ steps.version.outputs.VERSION }} and update released analyzer rules"
7174
author_name: GitHub Actions
7275
author_email: [email protected]
7376
committer_name: GitHub Actions
@@ -112,27 +115,6 @@ jobs:
112115
- name: Publish to NuGet
113116
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
114117

115-
# --- Analyzer Rules ---
116-
117-
- name: Move analyzer rules
118-
run: ./build.cmd move-analyzer-rules --version v${{ steps.version.outputs.VERSION }}
119-
120-
- name: Commit analyzer rules changes
121-
uses: EndBug/add-and-commit@v9
122-
with:
123-
message: "Update released analyzer rules"
124-
author_name: GitHub Actions
125-
author_email: [email protected]
126-
committer_name: GitHub Actions
127-
committer_email: [email protected]
128-
129-
- name: Push git changes
130-
uses: ad-m/github-push-action@v1
131-
with:
132-
github_token: ${{ secrets.GITHUB_TOKEN }}
133-
branch: master
134-
tags: false
135-
136118
# --- Documentation ---
137119

138120
- name: Fetch changelog

0 commit comments

Comments
 (0)