Skip to content

Merge pull request #73 from eksqtr/development #10

Merge pull request #73 from eksqtr/development

Merge pull request #73 from eksqtr/development #10

Workflow file for this run

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 }}