Update update-release-assets.yml
This commit is contained in:
19
.github/workflows/update-release-assets.yml
vendored
19
.github/workflows/update-release-assets.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ macos-latest, windows-latest ]
|
os: [ windows-latest ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -29,13 +29,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt pyinstaller pillow
|
pip install -r requirements.txt pyinstaller pillow
|
||||||
|
|
||||||
- name: Build app (macOS)
|
|
||||||
if: startsWith(matrix.os, 'macos')
|
|
||||||
run: |
|
|
||||||
python build.py --name ChatMock --entry app_qt.py --dmg
|
|
||||||
mv dist/ChatMock.dmg dist/ChatMock-macos.dmg
|
|
||||||
|
|
||||||
- name: Build app (Windows)
|
- name: Build app (Windows)
|
||||||
if: startsWith(matrix.os, 'windows')
|
if: startsWith(matrix.os, 'windows')
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
@@ -48,13 +42,8 @@ jobs:
|
|||||||
id: asset
|
id: asset
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ matrix.os }}" == macos-* ]]; then
|
echo "name=ChatMock-windows.zip" >> $GITHUB_OUTPUT
|
||||||
echo "name=ChatMock-macos.dmg" >> $GITHUB_OUTPUT
|
echo "path=dist/ChatMock-windows.zip" >> $GITHUB_OUTPUT
|
||||||
echo "path=dist/ChatMock-macos.dmg" >> $GITHUB_OUTPUT
|
|
||||||
else
|
|
||||||
echo "name=ChatMock-windows.zip" >> $GITHUB_OUTPUT
|
|
||||||
echo "path=dist/ChatMock-windows.zip" >> $GITHUB_OUTPUT
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Get latest release
|
- name: Get latest release
|
||||||
id: latest_release
|
id: latest_release
|
||||||
|
|||||||
Reference in New Issue
Block a user