Files
AnyImage/.github/workflows/build.yml
nan ee46d98b93
Some checks failed
运行测试 / test (push) Failing after 16m31s
构建并部署文档 / deploy (push) Failing after 8m38s
feat: add GitHub Actions workflow for running tests on push and pull request
2026-08-19 21:38:08 +08:00

34 lines
604 B
YAML

name: 发布扩展
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v6
- name: 配置 uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.11"
- name: 运行测试
run: uv run --frozen pytest
- name: 构建扩展
run: uv run --frozen python pack.py
- name: 发布扩展包
uses: https://gitea.com/actions/gitea-release-action@v1.3.6
with:
files: |-
dist/*.zip