Skip to content

Commit

Permalink
新增Windows自动编译
Browse files Browse the repository at this point in the history
  • Loading branch information
aoaostar committed Jul 22, 2021
1 parent 7da5422 commit 0f08da2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build_for_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build_for_windows

on:
push:
workflow_dispatch:


jobs:
deploy:

runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: build
run: |
pip install pyinstaller
pyinstaller -F main.py
mv ./dist/main.exe ./dist/aliyundrive-uploader_windows_amd64.exe
- name: Upload artifacts windows_amd64
uses: actions/upload-artifact@v2
with:
name: aliyundrive-uploader_windows_amd64
path: ./dist/aliyundrive-uploader_windows_amd64.exe

0 comments on commit 0f08da2

Please sign in to comment.