From c9bfc810cee8f7f9977a7629318ed60fb49c874c Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sun, 9 Mar 2025 11:26:10 +0800 Subject: [PATCH] ci: upload astrbot webui build ci --- .github/workflows/dashboard_ci.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/dashboard_ci.yml diff --git a/.github/workflows/dashboard_ci.yml b/.github/workflows/dashboard_ci.yml new file mode 100644 index 000000000..8575e9e33 --- /dev/null +++ b/.github/workflows/dashboard_ci.yml @@ -0,0 +1,31 @@ +name: AstrBot Dashboard CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: npm install, build + run: | + cd dashboard + npm install + npm run build + + - name: Inject Commit SHA + id: get_sha + run: | + echo "COMMIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV + mkdir -p dist/assets + echo $COMMIT_SHA > dist/assets/version + + - name: Archive production artifacts + uses: actions/upload-artifact@v4 + with: + name: dist-without-markdown + path: | + dist + !dist/**/*.md