Skip to content

implement-specific-freelancer-page-profile #2

implement-specific-freelancer-page-profile

implement-specific-freelancer-page-profile #2

Workflow file for this run

name: workflow on master
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{secrets.VERCEL_PROJECT_ID }}
# what if i commit modification on a readme file :)
# that is why i commented the push branches main sub tree ...
on:
#push:
#branches:
#- main
pull_request:
types: [closed]
jobs:
DeployProduction:
# so it will run this workflow only new pull request is merged into main
# branch coming from another secondary branch ...
if: github.event.pull_request.merged == true && github.event.base.ref == "main"

Check failure on line 21 in .github/workflows/production.yaml

View workflow run for this annotation

GitHub Actions / workflow on master

Invalid workflow file

The workflow is not valid. .github/workflows/production.yaml (Line: 21, Col: 9): Unexpected symbol: '"main"'. Located at position 70 within expression: github.event.pull_request.merged == true && github.event.base.ref == "main"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install vercel cli
run: npm install --global vercel
- name: pull vercel environment information
run: vercel pull --yes --environment=production --token=${{secrets.VERCEL_TOKEN}}
- name: build the app
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: deploy the app
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}