Skip to content

v0.3.4-锄大地完整版 #6

v0.3.4-锄大地完整版

v0.3.4-锄大地完整版 #6

Workflow file for this run

name: Package into exe
on:
release:
types:
- published
push:
branches:
- dev_exe
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Build application
run: pyinstaller src/gui/app.py --noconfirm --add-data "images:images" --add-data "data:data" --add-data "config:config" --add-data "model:model" --name StarRailAutoProxy --collect-all cnocr
- name: Create archive
run: 7z a -r StarRailAutoProxy.zip dist/StarRailAutoProxy
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: StarRailAutoProxy.zip
asset_name: StarRailAutoProxy-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip