diff --git a/.github/actions/deploy-quartz/Dockerfile b/.github/actions/deploy-quartz/Dockerfile index 19a709a..3df0957 100644 --- a/.github/actions/deploy-quartz/Dockerfile +++ b/.github/actions/deploy-quartz/Dockerfile @@ -1,7 +1,6 @@ FROM node:20-slim as builder WORKDIR /usr/src/app -RUN git clone https://github.com/jackyzha0/quartz.git -RUN cd quartz +COPY /quartz . RUN npm ci COPY /workspace/Peaceultime/system-aspect /workspace/Peaceultime/system-aspect diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b0783f3..a8cd27f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Deploy Quartz site to GitHub Pages +name: Build Quartz site on: push: @@ -18,5 +18,7 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 # Fetch all history for git info + - name: "Get Quartz" + run: git clone https://github.com/jackyzha0/quartz.git - name: "Building Quartz content" uses: ./.github/actions/deploy-quartz \ No newline at end of file