forked from oyd/ozgurkon-2021-site
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
509 B
32 lines
509 B
6 years ago
|
image: ilaborie/hugonode
|
||
|
|
||
|
variables:
|
||
|
GIT_SUBMODULE_STRATEGY : recursive
|
||
|
|
||
|
before_script:
|
||
|
- hugo version
|
||
|
- echo node `node --version`
|
||
|
- echo yarn `yarn --version`
|
||
|
|
||
|
sandbox:
|
||
|
script:
|
||
|
- hugo
|
||
|
- firebase use default
|
||
|
- firebase deploy --token "$FIREBASE_SANDBOX_TOKEN"
|
||
|
artifacts:
|
||
|
paths:
|
||
|
- public
|
||
|
only:
|
||
|
- develop
|
||
|
|
||
|
prod:
|
||
|
script:
|
||
|
- hugo
|
||
|
- firebase use prod
|
||
|
- firebase deploy --token "$FIREBASE_PROD_TOKEN"
|
||
|
artifacts:
|
||
|
paths:
|
||
|
- public
|
||
|
only:
|
||
|
- master
|