Skip to content

Commit 23a4d94

Browse files
dpastoorclaude
andcommitted
Add GitHub Release job to workflow
- Added Release job that depends on Release-Build - Downloads all build artifacts and attaches to GitHub release - Only runs on tag pushes (not manual workflow_dispatch) - Generates release notes automatically - Marks test tags as prerelease - Phase 6 of incremental release pipeline 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent a2a285b commit 23a4d94

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77

88
permissions:
9-
contents: read
9+
contents: write
1010

1111
jobs:
1212
Release-Build:
@@ -82,3 +82,42 @@ jobs:
8282
path: ${{ env.ARTIFACT_NAME }}
8383
if-no-files-found: error
8484
retention-days: 7
85+
86+
Release:
87+
needs: [Release-Build]
88+
runs-on: ubuntu-latest
89+
if: ${{ github.ref_type == 'tag' }}
90+
permissions:
91+
contents: write
92+
93+
steps:
94+
- name: Ensure artifacts dir exists
95+
run: mkdir -p artifacts
96+
97+
- name: Download Artifacts
98+
uses: actions/download-artifact@v4
99+
with:
100+
path: artifacts
101+
merge-multiple: true
102+
103+
- name: List downloaded artifacts
104+
run: ls -lah artifacts/
105+
106+
- name: Release
107+
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191
108+
with:
109+
name: ${{ github.ref_name }}
110+
tag_name: ${{ github.ref_name }}
111+
generate_release_notes: true
112+
fail_on_unmatched_files: true
113+
body: |
114+
Welcome to release ${{ github.ref_name }} of test-build-processes!
115+
116+
**Build targets:**
117+
- `x86_64-unknown-linux-gnu`: Built on AlmaLinux 8 (glibc 2.28) for broad compatibility
118+
- `aarch64-unknown-linux-gnu`: Built on AlmaLinux 8 (glibc 2.28) for ARM64 systems
119+
120+
All binaries are dynamically linked against glibc 2.28+.
121+
token: ${{ secrets.GITHUB_TOKEN }}
122+
prerelease: ${{ contains(github.ref, '-pre') || contains(github.ref, '-test') }}
123+
files: artifacts/*

0 commit comments

Comments
 (0)