ci: activate staging deployment

This commit is contained in:
liyasthomas
2022-06-03 15:32:58 +05:30
parent cf90d16f8a
commit 93faa8d5ff

View File

@@ -24,11 +24,20 @@ jobs:
- name: Build Site - name: Build Site
run: pnpm run generate run: pnpm run generate
# Deploy the site with netlify-cli # Deploy the staging site with netlify-cli
- name: Deploy to Netlify - name: Deploy to Netlify (staging)
uses: netlify/actions/cli@master uses: netlify/actions/cli@master
env: env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_STAGING_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
with:
args: deploy --dir=packages/hoppscotch-app/dist --prod
# Deploy the production site with netlify-cli
- name: Deploy to Netlify (production)
uses: netlify/actions/cli@master
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_PRODUCTION_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
with: with:
args: deploy --dir=packages/hoppscotch-app/dist --prod args: deploy --dir=packages/hoppscotch-app/dist --prod