You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
593 B
YAML
28 lines
593 B
YAML
variables:
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
stages:
|
|
- deploy
|
|
|
|
pages:
|
|
stage: deploy
|
|
only:
|
|
- master
|
|
image:
|
|
name: node:lts
|
|
script:
|
|
- apt-get update -y
|
|
- apt-get install -y brotli
|
|
- mv private/posts/* posts/
|
|
- mv private/pages/* pages/
|
|
- mv private/styles/* styles/
|
|
- npm ci
|
|
- npm run build
|
|
- mv public next-public
|
|
- mv out public
|
|
- find ./public -type f | grep -Ev '(\.png|\.jpg|\.jpeg)' | xargs gzip --best -k
|
|
- find ./public -type f | grep -Ev '(\.png|\.jpg|\.jpeg)' | xargs brotli --best
|
|
artifacts:
|
|
paths:
|
|
- public
|