File tree 1 file changed +15
-17
lines changed
1 file changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -11,31 +11,29 @@ concurrency:
11
11
cancel-in-progress : false
12
12
13
13
jobs :
14
- build :
15
- name : build
14
+ build-dev :
15
+ name : build-dev
16
16
runs-on : ubuntu-latest
17
17
env :
18
18
NEXT_PUBLIC_BASE_PATH : /norwegian-public-organizations
19
+ VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
20
+ VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
19
21
steps :
20
22
- name : Checkout
21
23
uses : actions/checkout@v4
22
24
- name : setup bun
23
25
uses : oven-sh/setup-bun@v1
24
- - name : Install packages
25
- run : bun install
26
- - name : Build
27
- run : bun run build
28
- - name : Upload artifact
29
- uses : actions/upload-pages-artifact@v3
30
- with :
31
- path : ./out
26
+ - name : Install Vercel CLI
27
+ run : bun install --global vercel@latest
28
+ - name : Pull Vercel Environment Information
29
+ run : vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
30
+ - name : Build Project Artifacts
31
+ run : vercel build --token=${{ secrets.VERCEL_TOKEN }}
32
+
32
33
deploy :
33
- environment :
34
- name : github-pages
35
- url : ${{ steps.deployment.outputs.page_url }}
34
+ name : deploy
36
35
runs-on : ubuntu-latest
37
- needs : build
36
+ needs : build-dev
38
37
steps :
39
- - name : Deploy to GitHub Pages
40
- id : deployment
41
- uses : actions/deploy-pages@v4
38
+ - name : Deploy Project Artifacts to Vercel
39
+ run : vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
You can’t perform that action at this time.
0 commit comments