Skip to content

Commit

Permalink
添加 Release Action
Browse files Browse the repository at this point in the history
  • Loading branch information
TakWolf committed Jul 20, 2024
1 parent 388cd0d commit 31635e2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
release:
types: [published]

jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install pip --upgrade
python -m pip install -r requirements.txt
- name: Build
run: python -m tools.build
- name: Release
uses: softprops/action-gh-release@v2
with:
files: ./build/outputs/hzk-pixel-*px.*

0 comments on commit 31635e2

Please sign in to comment.