Skip to content

Commit

Permalink
Create windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hyprocritor authored Jun 7, 2024
1 parent 42e8bc5 commit 226b766
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Release EXE

on:
push:
branches:
- dev
workflow_dispatch:

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # 替换为你的 Python 版本

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
- name: Build EXE
run: |
pyinstaller main.spec
- name: Upload EXE to GitHub Release
uses: softprops/action-gh-release@v1
with:
files: dist/* # 假设生成的EXE文件在dist目录下
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 226b766

Please sign in to comment.