mirror of
https://github.com/xxnuo/MTranServer.git
synced 2026-06-05 13:49:25 +08:00
fix: ci build
This commit is contained in:
31
.github/workflows/docker.yml
vendored
31
.github/workflows/docker.yml
vendored
@@ -67,6 +67,12 @@ jobs:
|
||||
fi
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.23'
|
||||
cache: true
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
@@ -77,14 +83,37 @@ jobs:
|
||||
with:
|
||||
version: 9
|
||||
|
||||
- name: Get pnpm store directory
|
||||
shell: bash
|
||||
run: |
|
||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
||||
|
||||
- name: Setup pnpm cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ env.STORE_PATH }}
|
||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-store-
|
||||
|
||||
- name: Build UI
|
||||
run: |
|
||||
cd ui
|
||||
pnpm install --frozen-lockfile
|
||||
pnpm build
|
||||
echo "UI build complete"
|
||||
echo "✓ UI build complete"
|
||||
ls -lh dist/
|
||||
|
||||
- name: Download resources
|
||||
run: |
|
||||
make download
|
||||
echo "✓ Resources downloaded"
|
||||
|
||||
- name: Generate docs
|
||||
run: |
|
||||
make generate-docs
|
||||
echo "✓ Docs generated"
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user