Skip to content

Commit 1944678

Browse files
committed
Refactor build-release.yml to standardize asset naming and improve readability
1 parent a5929b2 commit 1944678

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/build-release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ jobs:
1919
arch: x86_64
2020
executable_name: Application
2121
asset_name: Application-linux-x86_64
22-
22+
2323
# Windows x86_64
2424
- os: windows-latest
2525
platform: windows
2626
arch: x86_64
2727
executable_name: Application.exe
2828
asset_name: Application-windows-x86_64.exe
29-
29+
3030
# macOS Intel x86_64
3131
- os: macos-13
3232
platform: macos
3333
arch: x86_64
3434
executable_name: Application
3535
asset_name: Application-macos-x86_64
36-
36+
3737
# macOS Apple Silicon ARM64
3838
- os: macos-latest
3939
platform: macos
@@ -42,13 +42,17 @@ jobs:
4242
asset_name: Application-macos-arm64
4343

4444
runs-on: ${{ matrix.os }}
45-
45+
4646
steps:
4747
- name: Checkout repository (with submodules)
4848
uses: actions/checkout@v4
4949
with:
5050
submodules: recursive
5151

52+
- name: Copy .env.example to .env
53+
run: cp .env.example .env
54+
shell: bash
55+
5256
- name: Set up Python
5357
uses: actions/setup-python@v4
5458
with:
@@ -93,7 +97,7 @@ jobs:
9397
run: |
9498
version=${GITHUB_REF_NAME#v}
9599
echo "Extracting changelog for version $version"
96-
100+
97101
# Extract the changelog section for this version
98102
if grep -q "## \[$version\]" CHANGELOG.md; then
99103
# Extract content between this version and the next version heading or links section
@@ -103,7 +107,7 @@ jobs:
103107
echo "No changelog entry found for version $version, using default message"
104108
changelog_content="Release $version - See CHANGELOG.md for details"
105109
fi
106-
110+
107111
# Store in output for use in release step
108112
echo "content<<EOF" >> $GITHUB_OUTPUT
109113
echo "$changelog_content" >> $GITHUB_OUTPUT
@@ -117,4 +121,4 @@ jobs:
117121
prerelease: ${{ startsWith(github.ref_name, 'b') }}
118122
body: ${{ steps.changelog.outputs.content }}
119123
env:
120-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
124+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)