This commit is contained in:
Yuzhong Zhang
2025-06-23 12:34:34 +08:00
parent 1d2ff532f5
commit 7b2f7af77c
4 changed files with 55 additions and 65 deletions
-31
View File
@@ -11,32 +11,7 @@ env:
OWNER: betterandbetterii
jobs:
build-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Apply frontend patch
run: |
cd excalidraw
git apply ../frontend.patch
- name: Build frontend
run: |
docker build -t excalidraw-ui-build excalidraw -f ui-build.Dockerfile
docker run -v ${PWD}/:/pwd/ excalidraw-ui-build cp -r /frontend /pwd
- name: Upload frontend artifact
uses: actions/upload-artifact@v4
with:
name: frontend
path: frontend/
build-and-push:
needs: build-frontend
runs-on: ubuntu-latest
permissions:
contents: read
@@ -48,12 +23,6 @@ jobs:
with:
submodules: recursive
- name: Download frontend artifact
uses: actions/download-artifact@v4
with:
name: frontend
path: frontend/
- name: Log in to Container Registry
uses: docker/login-action@v3
with: