mirror of
https://github.com/Kxsso/jcutmirror.git
synced 2026-03-27 15:27:02 +08:00
29 lines
423 B
YAML
29 lines
423 B
YAML
image: node:lts-bullseye
|
|
|
|
stages:
|
|
- build
|
|
- deploy
|
|
|
|
gatsby-build:
|
|
stage: build
|
|
variables:
|
|
CHOKIDAR_USEPOLLING: 1
|
|
cache:
|
|
paths:
|
|
- node_modules/
|
|
script:
|
|
- bash cached-restore.sh
|
|
- yarn run build
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
|
|
deploy-webhook:
|
|
stage: deploy
|
|
only:
|
|
- main
|
|
script:
|
|
- curl "$WEBHOOK_DEPLOY_URL"
|
|
environment:
|
|
name: staging
|
|
url: https://mirrors.zju.edu.cn/index |