1
0
mirror of https://github.com/ZeroCatDev/ClassworksKV.git synced 2025-07-01 20:09:23 +00:00

Update project version to 0.0.0 in package.json, enhance README.md with deployment badge, and modify Docker publish workflow to trigger on both main and develop branches.

This commit is contained in:
SunWuyuan 2025-05-25 08:42:46 +08:00
parent f703bb2a8b
commit fad9867637
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64
3 changed files with 15 additions and 5 deletions

View File

@ -2,10 +2,11 @@ name: Docker Build and Push
on:
push:
branches: [ "main" ]
branches: [ "main", "develop" ]
tags: [ "v*.*.*" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "develop" ]
workflow_dispatch:
env:
REGISTRY: ghcr.io
@ -26,6 +27,9 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Show generated image tags
run: echo "${{ steps.meta.outputs.tags }}"
- name: Log in to Container registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
@ -44,8 +48,10 @@ jobs:
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,format=short
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{major}}
type=sha,format=long
flavor: |
latest=auto
- name: Build and push Docker image
uses: docker/build-push-action@v5

View File

@ -1,6 +1,9 @@
# Classworks KV
[Classworks](https://cs.houlangs.com)用于班级大屏的作业板小工具
[![通过雨云一键部署](https://rainyun-apps.cn-nb1.rains3.com/materials/deploy-on-rainyun-cn.svg)](https://app.rainyun.com/apps/rca/store/6229/wuyuan_)
## 文档
[Classworks 文档](https://docs.wuyuan.dev)
@ -11,3 +14,4 @@ This project is licensed under the **GNU AGPL v3.0**.
Copyright (C) 2025 **Sunwuyuan** (<https://wuyuan.dev>)
See [LICENSE](./LICENSE) for details.

View File

@ -1,6 +1,6 @@
{
"name": "ClassworksKV",
"version": "1.0.0",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www",