Skip to content

Commit 0f7e481

Browse files
authored
fix: use algokit orchestrated deploy commands inside github workflows (#33)
1 parent 02101bd commit 0f7e481

File tree

3 files changed

+4
-18
lines changed

3 files changed

+4
-18
lines changed

examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-cd.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,5 @@ jobs:
4646
env:
4747
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
4848
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
49-
run: |
50-
npm install --global netlify-cli@latest
51-
netlify login
52-
netlify deploy --build --prod
49+
run: algokit project run ci-deploy-netlify
5350

examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-cd.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,5 @@ jobs:
4747
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
4848
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
4949
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
50-
run: |
51-
npm install --global vercel@canary
52-
vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
53-
vercel build --prod
54-
vercel deploy --prebuilt --prod
50+
run: algokit project run ci-deploy-vercel
5551

template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% if cloud_provider != none %}{% include pathjoin('includes', 'project_name_kebab.jinja') %}-cd.yaml{% endif %}.jinja

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,11 @@ jobs:
5252
VERCEL_TOKEN: ${{ '{{' }} secrets.VERCEL_TOKEN {{ '}}' }}
5353
VERCEL_PROJECT_ID: ${{ '{{' }} secrets.VERCEL_PROJECT_ID {{ '}}' }}
5454
VERCEL_ORG_ID: ${{ '{{' }} secrets.VERCEL_ORG_ID {{ '}}' }}
55-
run: |
56-
npm install --global vercel@canary
57-
vercel pull --yes --environment=production --token=${{ '{{' }} secrets.VERCEL_TOKEN {{ '}}' }}
58-
vercel build --prod
59-
vercel deploy --prebuilt --prod
55+
run: algokit project run ci-deploy-vercel
6056
{% elif cloud_provider == 'netlify' %}
6157
- name: Publish to Netlify
6258
env:
6359
NETLIFY_SITE_ID: ${{ '{{' }} secrets.NETLIFY_SITE_ID {{ '}}' }}
6460
NETLIFY_AUTH_TOKEN: ${{ '{{' }} secrets.NETLIFY_AUTH_TOKEN {{ '}}' }}
65-
run: |
66-
npm install --global netlify-cli@latest
67-
netlify login
68-
netlify deploy --build --prod
61+
run: algokit project run ci-deploy-netlify
6962
{% endif -%}

0 commit comments

Comments
 (0)