Skip to content

Commit aaca1a4

Browse files
committed
Bug Fixes to Workflow
1 parent aaeeaba commit aaca1a4

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- name: Read version from file
3131
id: get_version
3232
run: echo "VERSION=$(cat version)" >> $GITHUB_ENV
33+
shell: bash
3334

3435
- name: Set up Python
3536
uses: actions/setup-python@v5
@@ -39,15 +40,15 @@ jobs:
3940
- name: Install dependencies
4041
run: |
4142
python -m pip install --upgrade pip
43+
pip install pyinstaller
4244
pip install -r requirements.txt
4345
4446
- name: Build with PyInstaller
4547
run: pyinstaller modpack_debugger.py --name ModpackDebuggerKit
4648

4749
- name: Zip the build (Windows)
4850
if: runner.os == 'Windows'
49-
run: |
50-
Compress-Archive -Path dist/ModpackDebuggerKit -DestinationPath ModpackDebuggerKit_${{ env.VERSION }}_${{ matrix.asset_os_name }}.zip
51+
run: Compress-Archive -Path dist/ModpackDebuggerKit -DestinationPath ModpackDebuggerKit_${{ env.VERSION }}_${{ matrix.asset_os_name }}.zip
5152

5253
- name: Zip the build (Linux/macOS)
5354
if: runner.os != 'Windows'
@@ -76,6 +77,7 @@ jobs:
7677
- name: Read version from file
7778
id: get_version
7879
run: echo "VERSION=$(cat version)" >> $GITHUB_ENV
80+
shell: bash
7981

8082
- name: Download all build artifacts
8183
uses: actions/download-artifact@v4
@@ -96,6 +98,7 @@ jobs:
9698
echo "RELEASE_BODY<<EOF" >> $GITHUB_ENV
9799
echo "$BODY" >> $GITHUB_ENV
98100
echo "EOF" >> $GITHUB_ENV
101+
shell: bash
99102

100103
- name: Create GitHub Release
101104
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)