Skip to content

Commit fcc596e

Browse files
authored
Merge pull request #10 from p2-inc/update/examples-deploy
Add tokens to Apps
2 parents d750f0f + ec237bd commit fcc596e

File tree

159 files changed

+16285
-588
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+16285
-588
lines changed

.github/workflows/angular.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Deploy Angular Example
2+
3+
env:
4+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
5+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_ANGULAR_PROJECT_ID }}
6+
VERCEL_TOKEN: ${{ secrets.VERCEL_DEPLOYMENT_TOKEN }}
7+
on:
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- "frameworks/angular/**"
13+
pull_request:
14+
branches:
15+
- main
16+
paths:
17+
- "frameworks/angular/**"
18+
19+
jobs:
20+
deploy-preview:
21+
if: github.event_name == 'pull_request'
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v2
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: "20"
32+
33+
- name: Install dependencies
34+
run: npm install
35+
working-directory: ./frameworks/angular
36+
37+
- name: Install Vercel CLI
38+
run: npm install -g vercel@latest
39+
40+
- name: Pull Vercel Environment Information
41+
run: vercel pull --yes --environment=preview --token=$VERCEL_TOKEN
42+
working-directory: ./frameworks/angular
43+
44+
- name: Build Project Artifacts
45+
run: vercel build --token=$VERCEL_TOKEN
46+
working-directory: ./frameworks/angular
47+
48+
- name: Deploy Project Artifacts to Vercel
49+
run: vercel deploy --prebuilt --token=$VERCEL_TOKEN
50+
working-directory: ./frameworks/angular
51+
52+
deploy-prod:
53+
if: github.event_name == 'push'
54+
runs-on: ubuntu-latest
55+
56+
steps:
57+
- name: Checkout code
58+
uses: actions/checkout@v2
59+
60+
- name: Setup Node.js
61+
uses: actions/setup-node@v3
62+
with:
63+
node-version: "20"
64+
65+
- name: Install dependencies
66+
run: npm install
67+
working-directory: ./frameworks/angular
68+
69+
- name: Install Vercel CLI
70+
run: npm install -g vercel@latest
71+
72+
- name: Pull Vercel Environment Information
73+
run: vercel pull --yes --environment=production --token=$VERCEL_TOKEN
74+
working-directory: ./frameworks/angular
75+
76+
- name: Build Project Artifacts
77+
run: vercel build --prod --token=$VERCEL_TOKEN
78+
working-directory: ./frameworks/angular
79+
80+
- name: Deploy Project Artifacts to Vercel
81+
run: vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN
82+
working-directory: ./frameworks/angular

.github/workflows/nextjs.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Deploy to Vercel
1+
name: Deploy Next.js Example
22

33
env:
44
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
5-
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
5+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_NEXTJS_PROJECT_ID }}
66
VERCEL_TOKEN: ${{ secrets.VERCEL_DEPLOYMENT_TOKEN }}
77
on:
88
push:
@@ -34,10 +34,6 @@ jobs:
3434
run: npm install
3535
working-directory: ./frameworks/nextjs
3636

37-
- name: Build project
38-
run: npm run build
39-
working-directory: ./frameworks/nextjs
40-
4137
- name: Install Vercel CLI
4238
run: npm install -g vercel@latest
4339

@@ -70,10 +66,6 @@ jobs:
7066
run: npm install
7167
working-directory: ./frameworks/nextjs
7268

73-
- name: Build project
74-
run: npm run build
75-
working-directory: ./frameworks/nextjs
76-
7769
- name: Install Vercel CLI
7870
run: npm install -g vercel@latest
7971

.github/workflows/nuxt-keycloakjs.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Deploy Nuxt keycloak-js Example
2+
env:
3+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
4+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_NUXT_KEYCLOAKJS_PROJECT_ID }}
5+
VERCEL_TOKEN: ${{ secrets.VERCEL_DEPLOYMENT_TOKEN }}
6+
on:
7+
push:
8+
branches:
9+
- main
10+
paths:
11+
- "frameworks/nuxt/keycloak-js/**"
12+
pull_request:
13+
branches:
14+
- main
15+
paths:
16+
- "frameworks/nuxt/keycloak-js/**"
17+
18+
jobs:
19+
deploy-preview:
20+
if: github.event_name == 'pull_request'
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v2
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: "20"
31+
32+
- name: Install dependencies
33+
run: npm install
34+
working-directory: ./frameworks/nuxt/keycloak-js
35+
36+
- name: Install Vercel CLI
37+
run: npm install -g vercel@latest
38+
39+
- name: Pull Vercel Environment Information
40+
run: vercel pull --yes --environment=preview --token=$VERCEL_TOKEN
41+
working-directory: ./frameworks/nuxt/keycloak-js
42+
43+
- name: Build Project Artifacts
44+
run: vercel build --token=$VERCEL_TOKEN
45+
working-directory: ./frameworks/nuxt/keycloak-js
46+
47+
- name: Deploy Project Artifacts to Vercel
48+
run: vercel deploy --prebuilt --token=$VERCEL_TOKEN
49+
working-directory: ./frameworks/nuxt/keycloak-js
50+
51+
deploy-prod:
52+
if: github.event_name == 'push'
53+
runs-on: ubuntu-latest
54+
55+
steps:
56+
- name: Checkout code
57+
uses: actions/checkout@v2
58+
59+
- name: Setup Node.js
60+
uses: actions/setup-node@v3
61+
with:
62+
node-version: "20"
63+
64+
- name: Install dependencies
65+
run: npm install
66+
working-directory: ./frameworks/nuxt/keycloak-js
67+
68+
- name: Install Vercel CLI
69+
run: npm install -g vercel@latest
70+
71+
- name: Pull Vercel Environment Information
72+
run: vercel pull --yes --environment=production --token=$VERCEL_TOKEN
73+
working-directory: ./frameworks/nuxt/keycloak-js
74+
75+
- name: Build Project Artifacts
76+
run: vercel build --prod --token=$VERCEL_TOKEN
77+
working-directory: ./frameworks/nuxt/keycloak-js
78+
79+
- name: Deploy Project Artifacts to Vercel
80+
run: vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN
81+
working-directory: ./frameworks/nuxt/keycloak-js

.github/workflows/nuxt-oidc.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Deploy Nuxt oidc-client-ts Example
2+
env:
3+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
4+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_NUXT_OIDC_PROJECT_ID }}
5+
VERCEL_TOKEN: ${{ secrets.VERCEL_DEPLOYMENT_TOKEN }}
6+
on:
7+
push:
8+
branches:
9+
- main
10+
paths:
11+
- "frameworks/nuxt/oidc-client-ts/**"
12+
pull_request:
13+
branches:
14+
- main
15+
paths:
16+
- "frameworks/nuxt/oidc-client-ts/**"
17+
18+
jobs:
19+
deploy-preview:
20+
if: github.event_name == 'pull_request'
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v2
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: "20"
31+
32+
- name: Install dependencies
33+
run: npm install
34+
working-directory: ./frameworks/nuxt/oidc-client-ts
35+
36+
- name: Install Vercel CLI
37+
run: npm install -g vercel@latest
38+
39+
- name: Pull Vercel Environment Information
40+
run: vercel pull --yes --environment=preview --token=$VERCEL_TOKEN
41+
working-directory: ./frameworks/nuxt/oidc-client-ts
42+
43+
- name: Build Project Artifacts
44+
run: vercel build --token=$VERCEL_TOKEN
45+
working-directory: ./frameworks/nuxt/oidc-client-ts
46+
47+
- name: Deploy Project Artifacts to Vercel
48+
run: vercel deploy --prebuilt --token=$VERCEL_TOKEN
49+
working-directory: ./frameworks/nuxt/oidc-client-ts
50+
51+
deploy-prod:
52+
if: github.event_name == 'push'
53+
runs-on: ubuntu-latest
54+
55+
steps:
56+
- name: Checkout code
57+
uses: actions/checkout@v2
58+
59+
- name: Setup Node.js
60+
uses: actions/setup-node@v3
61+
with:
62+
node-version: "20"
63+
64+
- name: Install dependencies
65+
run: npm install
66+
working-directory: ./frameworks/nuxt/oidc-client-ts
67+
68+
- name: Install Vercel CLI
69+
run: npm install -g vercel@latest
70+
71+
- name: Pull Vercel Environment Information
72+
run: vercel pull --yes --environment=production --token=$VERCEL_TOKEN
73+
working-directory: ./frameworks/nuxt/oidc-client-ts
74+
75+
- name: Build Project Artifacts
76+
run: vercel build --prod --token=$VERCEL_TOKEN
77+
working-directory: ./frameworks/nuxt/oidc-client-ts
78+
79+
- name: Deploy Project Artifacts to Vercel
80+
run: vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN
81+
working-directory: ./frameworks/nuxt/oidc-client-ts

.github/workflows/react.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Deploy React Example
2+
3+
env:
4+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
5+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_REACT_PROJECT_ID }}
6+
VERCEL_TOKEN: ${{ secrets.VERCEL_DEPLOYMENT_TOKEN }}
7+
on:
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- "frameworks/reactjs/**"
13+
pull_request:
14+
branches:
15+
- main
16+
paths:
17+
- "frameworks/reactjs/**"
18+
19+
jobs:
20+
deploy-preview:
21+
if: github.event_name == 'pull_request'
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v2
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: "20"
32+
33+
- name: Install dependencies
34+
run: npm install
35+
working-directory: ./frameworks/reactjs
36+
37+
- name: Install Vercel CLI
38+
run: npm install -g vercel@latest
39+
40+
- name: Pull Vercel Environment Information
41+
run: vercel pull --yes --environment=preview --token=$VERCEL_TOKEN
42+
working-directory: ./frameworks/reactjs
43+
44+
- name: Build Project Artifacts
45+
run: vercel build --token=$VERCEL_TOKEN
46+
working-directory: ./frameworks/reactjs
47+
48+
- name: Deploy Project Artifacts to Vercel
49+
run: vercel deploy --prebuilt --token=$VERCEL_TOKEN
50+
working-directory: ./frameworks/reactjs
51+
52+
deploy-prod:
53+
if: github.event_name == 'push'
54+
runs-on: ubuntu-latest
55+
56+
steps:
57+
- name: Checkout code
58+
uses: actions/checkout@v2
59+
60+
- name: Setup Node.js
61+
uses: actions/setup-node@v3
62+
with:
63+
node-version: "20"
64+
65+
- name: Install dependencies
66+
run: npm install
67+
working-directory: ./frameworks/reactjs
68+
69+
- name: Install Vercel CLI
70+
run: npm install -g vercel@latest
71+
72+
- name: Pull Vercel Environment Information
73+
run: vercel pull --yes --environment=production --token=$VERCEL_TOKEN
74+
working-directory: ./frameworks/reactjs
75+
76+
- name: Build Project Artifacts
77+
run: vercel build --prod --token=$VERCEL_TOKEN
78+
working-directory: ./frameworks/reactjs
79+
80+
- name: Deploy Project Artifacts to Vercel
81+
run: vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN
82+
working-directory: ./frameworks/reactjs

0 commit comments

Comments
 (0)