mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-16 19:59:25 +08:00
Clean up build files
This commit is contained in:
parent
f7d60ada76
commit
e37a17f7f3
2 changed files with 2 additions and 3 deletions
|
@ -10,8 +10,7 @@ steps:
|
|||
CLOUDFLARE_API_TOKEN:
|
||||
from_secret: CLOUDFLARE_API_TOKEN
|
||||
commands:
|
||||
- npm install
|
||||
- npm run build
|
||||
- npm install --save-dev
|
||||
- npm run build
|
||||
- npx wrangler pages deploy "./build/" --project-name blog --branch master --commit-dirty
|
||||
secrets: [CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_API_TOKEN]
|
||||
|
|
|
@ -2,7 +2,7 @@ FROM node:18-alpine as build
|
|||
|
||||
WORKDIR /usr/local/app
|
||||
COPY ./ /usr/local/app/
|
||||
RUN npm install
|
||||
RUN npm install --save-dev
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:latest
|
||||
|
|
Loading…
Reference in a new issue