v2.3.3 #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package Application | |
on: | |
release: | |
types: [published] | |
jobs: | |
mac-build: | |
name: build Mac OS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: git | |
run: | | |
git --version | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyinstaller | |
pip install -r requirements.txt | |
- name: pyinstaller build | |
run: | | |
python build.py | |
- name: Create zip | |
run: | | |
mv ./dist ./wme-MacOS | | |
zip -r ./wme-MacOS.zip ./wme-MacOS/ | |
- name: Upload Release Asset | |
uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
with: | |
file: "wme-MacOS.zip" | |
update_latest_release: true | |
release_id: ${{ github.event.release.id }} | |
win-build: | |
name: build Windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: git | |
run: | | |
git --version | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyinstaller | |
pip install -r requirements.txt | |
- name: pyinstaller build | |
run: | | |
python build.py | |
- name: Create zip | |
shell: pwsh | |
run: ; | |
mv ./dist ./wme-Windows ; | |
Compress-Archive ./wme-Windows/ ./wme-Windows.zip ; | |
- name: Upload Release Asset | |
uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
with: | |
file: "wme-Windows.zip" | |
update_latest_release: true | |
release_id: ${{ github.event.release.id }} | |
linux-build: | |
name: build Linux | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: git | |
run: | | |
git --version | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyinstaller | |
pip install -r requirements.txt | |
- name: pyinstaller build | |
run: | | |
python build.py | |
- name: Create zip | |
run: | | |
mv ./dist ./wme-Ubuntu | | |
zip -r ./wme-Ubuntu.zip ./wme-Ubuntu/ | |
- name: Upload Release Asset | |
uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
with: | |
file: "wme-Ubuntu.zip" | |
update_latest_release: true | |
release_id: ${{ github.event.release.id }} | |