Skip to content

Commit fa8011b

Browse files
PinkQweenbradleyy
andcommitted
Enhance GitHub Actions workflow for OS binary release
Updated build.yml to rename the OS binary to include the tag name during the build process. This change ensures that the correct binary is referenced in the GitHub release step, improving clarity and organization in the release artifacts. Co-authored-by: Bradley Wu <Bradleyy@users.noreply.github.com>
1 parent 8950dab commit fa8011b

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,19 @@ jobs:
5555
uses: actions/download-artifact@v4
5656
with:
5757
name: os-bin
58+
path: ./bin
59+
60+
- name: Rename OS binary to include tag
61+
run: |
62+
mv ./bin/os.bin ./bin/os-${GITHUB_REF_NAME}.bin
63+
env:
64+
GITHUB_REF_NAME: ${{ github.ref_name }}
5865

5966
- name: Create GitHub Release
6067
uses: softprops/action-gh-release@v1
6168
with:
6269
tag_name: ${{ github.ref_name }}
6370
name: Build OS ${{ github.ref_name }}
64-
files: ./bin/os.bin
71+
files: ./bin/os-${{ github.ref_name }}.bin
6572
env:
66-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)