-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e8c631
commit 7d7aa1b
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Deploy to Vercel action is created because the project is under an organization. | ||
# Vercel itself cannot link a project under an organization with hobby plan. | ||
|
||
name: Deploy Vercel | ||
on: | ||
push: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
# Specify the version of Vercel CLI due to | ||
# https://github.com/orgs/vercel/discussions/1209 | ||
- run: | | ||
pnpm install | ||
pnpm dlx vercel@33.4.1 pull --yes --token=${VERCEL_TOKEN} | ||
pnpm dlx vercel@33.4.1 build --prod | ||
env: | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | ||
# Specify the version of Vercel CLI due to | ||
# https://github.com/orgs/vercel/discussions/1209 | ||
- uses: amondnet/vercel-action@v25 #deploy | ||
with: | ||
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required | ||
vercel-args: '--prod --prebuilt' #Optional | ||
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} #Required | ||
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} #Required | ||
vercel-version: '33.4.1' |