diff --git a/.github/workflows/web-deploy-production.yml b/.github/workflows/_deploy-vercel.yml similarity index 65% rename from .github/workflows/web-deploy-production.yml rename to .github/workflows/_deploy-vercel.yml index 05d0472a..28ad95ca 100644 --- a/.github/workflows/web-deploy-production.yml +++ b/.github/workflows/_deploy-vercel.yml @@ -1,13 +1,12 @@ -name: Web deploy vercel production -env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} +name: deploy-vercel on: - push: - # Pattern matched against refs/tags - tags: - - "*" # Push events to every tag not containing / + workflow_call: + secrets: + VERCEL_ORG_ID: + required: true + VERCEL_PROJECT_ID: + required: true jobs: Deploy-Production: diff --git a/.github/workflows/web-bump-version.yml b/.github/workflows/web-publish-prod.yml similarity index 78% rename from .github/workflows/web-bump-version.yml rename to .github/workflows/web-publish-prod.yml index d868207c..a7cea302 100644 --- a/.github/workflows/web-bump-version.yml +++ b/.github/workflows/web-publish-prod.yml @@ -1,4 +1,4 @@ -name: "Web bump version" +name: "Web Publish Prod" on: push: @@ -31,3 +31,9 @@ jobs: env: NEW_TAG: ${{ steps.version-bump.outputs.newTag }} run: echo "new tag $NEW_TAG" + + deploy-vercel: + uses: ./.github/workflows/_deploy-vercel.yml + secrets: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}