Skip to content

Commit

Permalink
ADD github action
Browse files Browse the repository at this point in the history
  • Loading branch information
karminski committed Nov 26, 2024
1 parent 0f39f47 commit 756ff47
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 39 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Windows Binary

on:
push:
tags:
- 'v*' # 当推送以v开头的tag时触发

jobs:
build:
runs-on: windows-latest # 使用Windows环境

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10' # 可以根据需要调整Python版本

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build executable
run: |
python -m PyInstaller fan-lord.spec
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ make all
## 作者

- [karminski](https://github.com/karminski)


39 changes: 0 additions & 39 deletions supermicro-x-series.spec

This file was deleted.

0 comments on commit 756ff47

Please sign in to comment.