Skip to content

Commit

Permalink
fix: use algokit orchestrated deploy commands inside github workflows (
Browse files Browse the repository at this point in the history
  • Loading branch information
neilcampbell authored May 21, 2024
1 parent 02101bd commit 0f7e481
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Original file line number Diff line number Diff line change
Expand Up @@ -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

Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}

0 comments on commit 0f7e481

Please sign in to comment.