www-new/.gitlab-ci.yml

46 lines
615 B
YAML

default:
image: node:14
cache:
paths:
- node_modules/
- .next
stages:
- build
- staging
variables:
BASE_PATH: '/~a3thakra/csc'
install_deps:
stage: .pre
script:
- npm install
lint:
stage: build
script:
- npm run lint
build:
stage: build
script:
- npm run build
staging:
stage: staging
script:
- npm run export
artifacts:
paths:
- out
only:
refs:
- main
update_staging_website:
stage: staging
needs: [staging]
script:
- curl -XPOST -H "Authorization: Basic $STAGING_SECRET" "https://csclub.uwaterloo.ca/$BASE_PATH"