Merge pull request #73 from eksqtr/development #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploying to Production Vercel (https://eubiejay.vercel.app) | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
on: | |
push: | |
branches: | |
- master | |
# Disabling development deployment because we didn't set up for development cloud environment for this. | |
# pull_request: | |
# branches: | |
# - development | |
# types: | |
# - closed | |
jobs: | |
Vercel-Deploy: | |
runs-on: ubuntu-latest | |
#if: github.event_name == 'push' || (github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master') | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- name: Checkout project source | |
uses: actions/checkout@v2 | |
- name: Install Vercel CLI Latest | |
run: npm install --global vercel@latest | |
- name: Pull Vercel Environment Information | |
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Build Project Artifacts | |
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Deploy Project Artifacts to Vercel | |
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} |