Skip to content

Commit f8c4ced

Browse files
authored
Merge pull request #378 from solid-connection/fix/vercel-build
Fix/vercel build
2 parents a282949 + cda9de4 commit f8c4ced

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Build and Vercel Preview Deployment on Main
1+
name: Build and Vercel Production Deployment on Main
22
permissions:
33
contents: write
44

55
env:
66
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
77
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
8-
VERCEL_ENV: preview
8+
VERCEL_ENV: production
99

1010
on:
1111
push:
@@ -19,7 +19,7 @@ jobs:
1919
uses: ./.github/workflows/headver-tagging.yml
2020
with: {}
2121

22-
Deploy-Preview:
22+
Deploy-Production:
2323
runs-on: ubuntu-latest
2424
needs: generate_tag
2525
env:
@@ -38,37 +38,30 @@ jobs:
3838
- name: Clean Vercel Directory
3939
run: rm -rf .vercel
4040

41-
- name: Link Vercel Project
42-
run: |
43-
vercel link \
44-
--yes \
45-
--project=${{ secrets.VERCEL_PROJECT_ID }} \
46-
--scope=${{ secrets.VERCEL_ORG_ID }} \
47-
--token=${{ secrets.VERCEL_TOKEN }}
48-
4941
- name: Pull Vercel Environment Information
5042
run: |
5143
vercel pull \
5244
--yes \
5345
--environment=${{ env.VERCEL_ENV }} \
54-
--scope=${{ secrets.VERCEL_ORG_ID }} \
5546
--token=${{ secrets.VERCEL_TOKEN }}
5647
5748
- name: Build Project Artifacts
5849
run: |
5950
vercel build \
6051
--yes \
6152
--target=${{ env.VERCEL_ENV }} \
62-
--scope=${{ secrets.VERCEL_ORG_ID }} \
53+
6354
--token=${{ secrets.VERCEL_TOKEN }}
6455
6556
- name: Deploy Project Artifacts to Vercel
6657
run: |
6758
vercel deploy \
6859
--prebuilt \
6960
--target=${{ env.VERCEL_ENV }} \
70-
--scope=${{ secrets.VERCEL_ORG_ID }} \
61+
7162
--token=${{ secrets.VERCEL_TOKEN }}
7263
7364
- name: Output Tag Version
7465
run: echo "Deployment completed for version $VERSION_TAG"
66+
67+

0 commit comments

Comments
 (0)