Files
arcaea-offline-ocr/.github/workflows/build-and-draft-release.yml
283375 0b53682398 ci: fix tag condition
- ok i didnt expect github actions does not support regex wtf
2025-06-26 00:15:02 +08:00

40 lines
776 B
YAML

name: "Build and draft a release"
on:
workflow_dispatch:
push:
tags:
- '*.*.*'
permissions:
contents: write
discussions: write
jobs:
build-and-draft-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Build package
run: |
pip install build
python -m build
- name: Draft a release
uses: softprops/action-gh-release@v2
with:
discussion_category_name: New releases
draft: true
generate_release_notes: true
files: |
dist/*