ci: add artifact dependency
- reuse artifact in netlify job
This commit is contained in:
parent
6db2075ab9
commit
3e9e607604
|
@ -54,8 +54,6 @@ jobs:
|
|||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
if: ${{ env.NETLIFY_SITE_ID != 0 && env.GITLAB_STATUS == 'down' }}
|
||||
run: |
|
||||
npm install
|
||||
npm install netlify-cli -g
|
||||
netlify --telemetry-disable
|
||||
npm run build
|
||||
netlify deploy --dir=public --prod
|
||||
|
|
|
@ -27,6 +27,9 @@ build_job:
|
|||
pages:
|
||||
stage: deploy
|
||||
|
||||
dependencies:
|
||||
- build_job
|
||||
|
||||
script:
|
||||
- echo
|
||||
|
||||
|
@ -49,13 +52,14 @@ 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
|
||||
|
||||
cache:
|
||||
|
|
Loading…
Reference in New Issue