Skip to content

Commit

Permalink
添加 GitHub 发布工作流配置
Browse files Browse the repository at this point in the history
  • Loading branch information
TakWolf committed Nov 14, 2023
1 parent 47890ce commit 4a9cf4b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
release:
types: [published]

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build
run: python ./build.py
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ./build/releases/*.zip

0 comments on commit 4a9cf4b

Please sign in to comment.