diff --git a/examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-cd.yaml b/examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-cd.yaml index 71a6b6d..e4dc0fb 100644 --- a/examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-cd.yaml +++ b/examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-cd.yaml @@ -46,8 +46,5 @@ jobs: env: NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - run: | - npm install --global netlify-cli@latest - netlify login - netlify deploy --build --prod + run: algokit project run ci-deploy-netlify \ No newline at end of file diff --git a/examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-cd.yaml b/examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-cd.yaml index b17cbd3..9b03c0e 100644 --- a/examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-cd.yaml +++ b/examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-cd.yaml @@ -47,9 +47,5 @@ jobs: VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - run: | - npm install --global vercel@canary - vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} - vercel build --prod - vercel deploy --prebuilt --prod + run: algokit project run ci-deploy-vercel \ No newline at end of file diff --git a/template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% if cloud_provider != none %}{% include pathjoin('includes', 'project_name_kebab.jinja') %}-cd.yaml{% endif %}.jinja b/template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% if cloud_provider != none %}{% include pathjoin('includes', 'project_name_kebab.jinja') %}-cd.yaml{% endif %}.jinja index 88f7c9e..6822642 100644 --- a/template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% if cloud_provider != none %}{% include pathjoin('includes', 'project_name_kebab.jinja') %}-cd.yaml{% endif %}.jinja +++ b/template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% if cloud_provider != none %}{% include pathjoin('includes', 'project_name_kebab.jinja') %}-cd.yaml{% endif %}.jinja @@ -52,18 +52,11 @@ jobs: VERCEL_TOKEN: ${{ '{{' }} secrets.VERCEL_TOKEN {{ '}}' }} VERCEL_PROJECT_ID: ${{ '{{' }} secrets.VERCEL_PROJECT_ID {{ '}}' }} VERCEL_ORG_ID: ${{ '{{' }} secrets.VERCEL_ORG_ID {{ '}}' }} - run: | - npm install --global vercel@canary - vercel pull --yes --environment=production --token=${{ '{{' }} secrets.VERCEL_TOKEN {{ '}}' }} - vercel build --prod - vercel deploy --prebuilt --prod + run: algokit project run ci-deploy-vercel {% elif cloud_provider == 'netlify' %} - name: Publish to Netlify env: NETLIFY_SITE_ID: ${{ '{{' }} secrets.NETLIFY_SITE_ID {{ '}}' }} NETLIFY_AUTH_TOKEN: ${{ '{{' }} secrets.NETLIFY_AUTH_TOKEN {{ '}}' }} - run: | - npm install --global netlify-cli@latest - netlify login - netlify deploy --build --prod + run: algokit project run ci-deploy-netlify {% endif -%}