mirror of
https://github.com/283375/arcaea-offline-ocr.git
synced 2025-04-19 13:30:18 +00:00
Compare commits
No commits in common. "2241230a7a4cae19308d4955b55c9dc584535e4c" and "00cd32dfdcf20892e34444a5da6dc2413d29d431" have entirely different histories.
2241230a7a
...
00cd32dfdc
48
.github/workflows/build-and-draft-release.yml
vendored
48
.github/workflows/build-and-draft-release.yml
vendored
@ -1,48 +0,0 @@
|
||||
name: "Build and draft a release"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
tags:
|
||||
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||
|
||||
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: Remove `v` in tag name
|
||||
uses: mad9000/actions-find-and-replace-string@5
|
||||
id: tagNameReplaced
|
||||
with:
|
||||
source: ${{ github.ref_name }}
|
||||
find: "v"
|
||||
replace: ""
|
||||
|
||||
- name: Draft a release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
discussion_category_name: New releases
|
||||
draft: true
|
||||
generate_release_notes: true
|
||||
files: |
|
||||
dist/arcaea_offline_ocr-${{ steps.tagNameReplaced.outputs.value }}*.whl
|
||||
dist/arcaea-offline-ocr-${{ steps.tagNameReplaced.outputs.value }}.tar.gz
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "arcaea-offline-ocr"
|
||||
version = "0.0.98"
|
||||
version = "0.0.97"
|
||||
authors = [{ name = "283375", email = "log_283375@163.com" }]
|
||||
description = "Extract your Arcaea play result from screenshot."
|
||||
readme = "README.md"
|
||||
@ -16,8 +16,8 @@ classifiers = [
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
"Homepage" = "https://github.com/ArcaeaOffline/core-ocr"
|
||||
"Bug Tracker" = "https://github.com/ArcaeaOffline/core-ocr/issues"
|
||||
"Homepage" = "https://github.com/283375/arcaea-offline-ocr"
|
||||
"Bug Tracker" = "https://github.com/283375/arcaea-offline-ocr/issues"
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
|
Loading…
x
Reference in New Issue
Block a user