From 3e9e607604bbe0940355fbc2155b35604b037838 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Mon, 14 Mar 2022 21:01:37 +0000 Subject: [PATCH] ci: add artifact dependency - reuse artifact in netlify job --- .github/workflows/pages.yml | 2 -- .gitlab-ci.yml | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 44350a3..efb4fa6 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6976b9e..7134d5b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: