Files
jcutmirror/.gitlab-ci.yml
2024-02-14 23:39:12 +08:00

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