Skip to content

create a GitHub Action workflow to build and publish an EXE file#139

Merged
GreatV merged 7 commits intoPFCCLab:mainfrom
LovingThresh:main
Mar 20, 2025
Merged

create a GitHub Action workflow to build and publish an EXE file#139
GreatV merged 7 commits intoPFCCLab:mainfrom
LovingThresh:main

Conversation

@LovingThresh
Copy link
Contributor

What's Changed

Added a GitHub Actions workflow to automatically build and publish Windows executables:

  • Runs daily at 00:00 UTC
  • Creates date-based versioned releases (e.g., v2025.03.20)
  • Works on Windows runners for the entire process
  • Generates SHA256 checksums for verification

Why

  • Provides ready-to-use executables for users without building from source
  • Eliminates manual release process
  • Ensures daily availability of latest builds

Implementation

  • Single Windows workflow using PowerShell
  • Properly handles file uploads and release management
  • Automatically replaces previous day's release

Copy link
Collaborator

@GreatV GreatV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个GitHub action更适用于 nightly build。建议做2个工作流, 将 nightly build 放在单独的工作流文件中,与正式发布区分开。正式发布只在每次打tag时运行。对于nightly build 建议 用单一固定的 "nightly" 标签每次构建会替换之前的 nightly 版本,通过 --prerelease 标记,明确标识为非正式版本。另外建议将中文注释改为英文注释。

@LovingThresh
Copy link
Contributor Author

Improved GitHub Actions Workflow for Automated Builds

What's Changed

Split the build process into two separate workflows for better organization and clarity:

1. Nightly Build Workflow

Added a dedicated workflow for automatic nightly builds
Runs daily at 00:00 UTC and on pushes to main/master
Creates a permanent "nightly" release tag marked as pre-release
Updates the same nightly release with each new build
Includes date in filename (e.g., PPOCRLabel-nightly-20250320.exe)
Generates SHA256 checksums for verification

2. Release Build Workflow

Added a separate workflow for official releases
Triggered only when version tags are pushed (e.g., v1.0.0)
Creates permanent version-based releases
Names executable files according to the version tag
Generates SHA256 checksums for verification

LovingThresh and others added 4 commits March 20, 2025 14:01
Co-authored-by: Wang Xin <xinwang614@gmail.com>
Co-authored-by: Wang Xin <xinwang614@gmail.com>
Co-authored-by: Wang Xin <xinwang614@gmail.com>
Co-authored-by: Wang Xin <xinwang614@gmail.com>
Copy link
Collaborator

@GreatV GreatV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GreatV GreatV merged commit 97282e4 into PFCCLab:main Mar 20, 2025
1 check passed
@GreatV
Copy link
Collaborator

GreatV commented Mar 20, 2025

你这是ai生成的吧,跑起来有问题。

@LovingThresh
Copy link
Contributor Author

Sorry, let me deal with it. What is the specific question?

@GreatV
Copy link
Collaborator

GreatV commented Mar 20, 2025

I've fixed the issues.

@LovingThresh
Copy link
Contributor Author

I sincerely apologize. When pushing the code today at the office, I relied on my memory and inadvertently missed the requirements.txt file. I also later realized that the generated package size is different from the version I successfully built at home. But, most of the code itself is fine. I am still very sorry for this oversight.

@GreatV
Copy link
Collaborator

GreatV commented Mar 20, 2025

Thanks for your contributions and please feel free to continue your contributions to the PPOCRLabel and the PaddleOCR community.

@GreatV
Copy link
Collaborator

GreatV commented Mar 21, 2025

Daily builds may be too frequent, we need to delete this action and only keep the builds during releases.

@GreatV
Copy link
Collaborator

GreatV commented Mar 21, 2025

Can you submit a PR to delete this?

@LovingThresh
Copy link
Contributor Author

🆗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants