diff --git a/.github/actions/deploy-quartz/Dockerfile b/.github/actions/deploy-quartz/Dockerfile new file mode 100644 index 0000000..25a6c96 --- /dev/null +++ b/.github/actions/deploy-quartz/Dockerfile @@ -0,0 +1,11 @@ +FROM node:20-slim as builder +WORKDIR /usr/src/app +COPY package.json . +COPY package-lock.json* . +RUN npm ci + +FROM node:20-slim +WORKDIR /usr/src/app +COPY --from=builder /usr/src/app/ /usr/src/app/ +COPY . . +CMD ["npx", "quartz", "build", "-d", "/workspace/Peaceultime/system-aspect", "-o", "/output"] \ No newline at end of file diff --git a/.github/actions/deploy-quartz/action.yml b/.github/actions/deploy-quartz/action.yml new file mode 100644 index 0000000..f36c5c8 --- /dev/null +++ b/.github/actions/deploy-quartz/action.yml @@ -0,0 +1,5 @@ +name: 'Build Quartz' +description: 'Use Quartz to build the static website content' +runs: + using: 'docker' + image: 'Dockerfile' \ No newline at end of file