Skip to content

Commit

Permalink
Update upload-to-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-stars-1 authored Jun 10, 2023
1 parent fca335e commit 3877b57
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/upload-to-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,28 @@ on:
jobs:
pre-release:
name: "Pre Release"
runs-on: "ubuntu-latest"
runs-on: windows-latest

steps:
# ...
- name: "Build & test"
run: |
echo "done!"
- name: Checkout repo
uses: actions/checkout@master

- name: Setup python
uses: actions/[email protected]
with:
python-version: 3.11.3

- name: Update Requirements
run: |
pip install -r requirements.txt
pip install nuitka
python -m nuitka --mingw64 --standalone --windows-disable-console --show-progress --show-memory --follow-import-to=need --nofollow-imports --enable-plugin=tk-inter .\gui.py
- name: package
shell: pwsh
run: |
Compress-Archive -Path ./gui.dist gui.zip'
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
Expand All @@ -27,4 +41,4 @@ jobs:
title: "预构建版本"
files: |
LICENSE.txt
*.jar
gui.zip

0 comments on commit 3877b57

Please sign in to comment.