2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 07:57:21 +08:00

workflow: try fix copy

This commit is contained in:
耗子
2024-12-29 02:52:46 +08:00
parent e5839678b3
commit 96cc85393a
4 changed files with 6 additions and 8 deletions

View File

@@ -7,9 +7,6 @@ on:
jobs:
frontend:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: web
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -26,15 +23,17 @@ jobs:
cache: 'pnpm'
cache-dependency-path: web/pnpm-lock.yaml
- name: Build frontend
working-directory: web
run: |
cp .env.production .env
cp settings/proxy-config.example.ts settings/proxy-config.ts
pnpm build
pnpm run copy
- name: Upload frontend
uses: actions/upload-artifact@v4
with:
name: frontend
path: web/dist/ # https://github.com/actions/upload-artifact/issues/541
path: web/dist/
backend:
needs: frontend
runs-on: ubuntu-24.04

View File

@@ -36,6 +36,7 @@ jobs:
cp .env.production .env
cp settings/proxy-config.example.ts settings/proxy-config.ts
pnpm build
pnpm run copy
- name: Set environment variables
run: |
echo "GOVERSION=$(go version | cut -d' ' -f3)" >> $GITHUB_ENV

View File

@@ -40,9 +40,6 @@ jobs:
run: govulncheck ./...
frontend:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: web
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -59,4 +56,5 @@ jobs:
cache: 'pnpm'
cache-dependency-path: web/pnpm-lock.yaml
- name: Run pnpm lint
working-directory: web
run: pnpm lint