Compare commits

...

2 Commits

Author SHA1 Message Date
q
df2bfb6ac7 优化构建流 2025-07-10 19:12:15 +08:00
q
517b6f8910 del 2025-07-10 19:07:02 +08:00
3 changed files with 2 additions and 36 deletions

View File

@@ -51,7 +51,7 @@ jobs:
cache: maven
- name: Build Frontend
run: cd web-front && yarn install && yarn run build
run: cd web-front && npm install && npm run build
- name: Build with Maven
run: mvn -B package --file pom.xml

View File

@@ -1,34 +0,0 @@
name: Update Release Badge
on:
push:
tags:
- 'v*' # 可按需调整
jobs:
update-badge:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Get latest tag
id: get_tag
run: echo "tag_name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Update README badge
run: |
TAG=${{ steps.get_tag.outputs.tag_name }}
BADGE="https://img.shields.io/github/actions/workflow/status/qaiu/netdisk-fast-download/maven.yml?branch=$TAG"
echo "Using badge: $BADGE"
# 替换 README 中 badge 行(标记行需特殊注释)
sed -i -E "s#(!\[release-badge\]\(.*\))#![release-badge]($BADGE)#" README.md
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -am "🔄 update release badge for ${{ steps.get_tag.outputs.tag_name }}" || echo "No changes"
git push

View File

@@ -9,7 +9,7 @@ import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import "vue3-json-viewer/dist/index.css";
import './styles/dark/css-vars.css'
import router from './router'
import router from './router/index.js'
const app = Vue.createApp(App)
app.use(router)