From 0f08da2625e01549746558d159ccd61be6501e10 Mon Sep 17 00:00:00 2001 From: aoaostar Date: Thu, 22 Jul 2021 21:16:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EWindows=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_for_windows.yml | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build_for_windows.yml diff --git a/.github/workflows/build_for_windows.yml b/.github/workflows/build_for_windows.yml new file mode 100644 index 0000000..a12fe9f --- /dev/null +++ b/.github/workflows/build_for_windows.yml @@ -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