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:
parent
f703bb2a8b
commit
fad9867637
14
.github/workflows/docker-publish.yml
vendored
14
.github/workflows/docker-publish.yml
vendored
@ -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
|
||||
|
@ -1,6 +1,9 @@
|
||||
# Classworks KV
|
||||
[Classworks](https://cs.houlangs.com)用于班级大屏的作业板小工具
|
||||
|
||||
|
||||
[](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.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ClassworksKV",
|
||||
"version": "1.0.0",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "node ./bin/www",
|
||||
|
Loading…
x
Reference in New Issue
Block a user