Skip to content

Commit 7cbc92b

Browse files
testing action workflow@4
1 parent 88bb8a4 commit 7cbc92b

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/main.yaml

+10-12
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,15 @@ jobs:
8080
- name: Lint
8181
run: yarn run lint
8282

83-
Deploy:
84-
needs: Check
83+
Deploy-Production:
8584
runs-on: ubuntu-latest
86-
if: "!contains(github.event.head_commit.message, '[skip ci]')"
8785
steps:
88-
- name: Checkout
89-
uses: actions/checkout@v2
90-
- name: Deploy to Vercel Action
91-
uses: BetaHuhn/deploy-to-vercel-action@v1
92-
with:
93-
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
94-
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
95-
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
96-
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
86+
- uses: actions/checkout@v2
87+
- name: Install Vercel CLI
88+
run: npm install --global vercel@latest
89+
- name: Pull Vercel Environment Information
90+
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
91+
- name: Build Project Artifacts
92+
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
93+
- name: Deploy Project Artifacts to Vercel
94+
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)