Skip to content

Commit 9d1fb77

Browse files
committed
[devops] add release workflow, pull_request trigger, and checkout v7 bump
1 parent e9987b0 commit 9d1fb77

2 files changed

Lines changed: 28 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Build Package
22

3-
on: push
3+
on:
4+
push:
5+
pull_request:
46

57
defaults:
68
run:
@@ -15,8 +17,7 @@ jobs:
1517
os: [ubuntu-latest, windows-latest]
1618

1719
steps:
18-
- name: Code Checkout
19-
uses: actions/checkout@v6
20+
- uses: actions/checkout@v7
2021

2122
- name: Install DotNet
2223
uses: actions/setup-dotnet@v5
@@ -41,3 +42,27 @@ jobs:
4142
with:
4243
name: Packages
4344
path: ./src/publish/
45+
46+
release:
47+
if: startsWith(github.ref, 'refs/tags/')
48+
needs: build
49+
permissions:
50+
contents: write
51+
runs-on: ubuntu-latest
52+
53+
steps:
54+
- uses: actions/checkout@v7
55+
56+
- name: Extract changelog entry
57+
run: |
58+
awk '/^## \[/{if(f) exit; f=1; next} f' \
59+
Simplify.Web.Swagger/CHANGELOG.md \
60+
> /tmp/release_notes.md
61+
62+
- name: Create release
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
run: |
66+
gh release create "${{ github.ref_name }}" \
67+
--title "${{ github.ref_name }}" \
68+
--notes-file /tmp/release_notes.md

src/Simplify.Web.Swagger/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
## [2.1.0] - 2026-06-26
44

5-
65
### Added
76

87
- .NET 10.0 explicit support

0 commit comments

Comments
 (0)