build: add .gitlab-ci.yml
This commit is contained in:
parent
2b3b7dd3e6
commit
67a6ed382d
1 changed files with 18 additions and 0 deletions
18
.gitlab-ci.yml
Normal file
18
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
image: node:latest
|
||||||
|
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
- .cache/
|
||||||
|
- public/
|
||||||
|
|
||||||
|
pages:
|
||||||
|
stage: deploy
|
||||||
|
script:
|
||||||
|
- npm install
|
||||||
|
- ./node_modules/.bin/gatsby build --prefix-paths
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
only:
|
||||||
|
- main
|
||||||
Loading…
Add table
Add a link
Reference in a new issue