Skip to content

添加pack_name参数 #25

添加pack_name参数

添加pack_name参数 #25

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
id-token: "write"
contents: "write"
packages: "write"
pull-requests: "read"
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build with Pyinstaller
run: |
pyinstaller -F main.py
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
path: dist/main.exe
- name: Create Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Automatic Build"
files: |
dist/main.exe