From f5f7adab55994ed6c26fb882ef623490f478192d Mon Sep 17 00:00:00 2001 From: Alexanderius Date: Fri, 24 Jul 2026 23:09:22 +0500 Subject: [PATCH 1/2] [spec] add release job and PR trigger to build workflow --- .github/workflows/build.yml | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fa7a960..519a47d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,8 @@ name: Build Package -on: push +on: + push: + pull_request: defaults: run: @@ -15,8 +17,7 @@ jobs: os: [ubuntu-latest, windows-latest] steps: - - name: Code Checkout - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install DotNet uses: actions/setup-dotnet@v5 @@ -41,3 +42,27 @@ jobs: with: name: Packages path: ./src/publish/ + + release: + if: startsWith(github.ref, 'refs/tags/') + needs: build + permissions: + contents: write + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v7 + + - name: Extract changelog entry + run: | + awk '/^## \[/{if(f) exit; f=1; next} f' \ + src/Simplify.Web.MessageBox/CHANGELOG.md \ + > /tmp/release_notes.md + + - name: Create release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create "${{ github.ref_name }}" \ + --title "${{ github.ref_name }}" \ + --notes-file /tmp/release_notes.md From a4806e1dac404a26e042f5887e71e9bba10527fe Mon Sep 17 00:00:00 2001 From: Alexanderius Date: Fri, 24 Jul 2026 23:13:39 +0500 Subject: [PATCH 2/2] [spec] fix changelog path in release job The release step was using an absolute path (`src/...`) but the working directory is already `src`, resulting in a wrong path (`src/src/...`). --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 519a47d..605ebbf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,7 +56,7 @@ jobs: - name: Extract changelog entry run: | awk '/^## \[/{if(f) exit; f=1; next} f' \ - src/Simplify.Web.MessageBox/CHANGELOG.md \ + Simplify.Web.MessageBox/CHANGELOG.md \ > /tmp/release_notes.md - name: Create release