ci: add artifact dependency

- reuse artifact in netlify job
This commit is contained in:
MDLeom 2022-03-14 06:23:06 +00:00
parent f54586a5bb
commit 66ff1f7f3b
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
2 changed files with 6 additions and 2 deletions

View File

@ -51,5 +51,4 @@ jobs:
npm install
npm install netlify-cli -g
netlify --telemetry-disable
npm run build
netlify deploy --dir=public --prod

View File

@ -32,6 +32,9 @@ build_job:
pages:
stage: deploy
dependencies:
- build_job
script:
- echo
@ -54,13 +57,15 @@ cloudflare:
netlify:
stage: deploy
dependencies:
- build_job
before_script:
- npm install
- npm install netlify-cli -g
- netlify --telemetry-disable
script:
- npm run build
- netlify deploy --dir=public --prod
rules: