Skip to content

Commit

Permalink
Merge pull request #10 from p2-inc/update/examples-deploy
Browse files Browse the repository at this point in the history
Add tokens to Apps
  • Loading branch information
pnzrr authored Aug 1, 2024
2 parents d750f0f + ec237bd commit fcc596e
Show file tree
Hide file tree
Showing 159 changed files with 16,285 additions and 588 deletions.
82 changes: 82 additions & 0 deletions .github/workflows/angular.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Deploy Angular Example

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_ANGULAR_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_DEPLOYMENT_TOKEN }}
on:
push:
branches:
- main
paths:
- "frameworks/angular/**"
pull_request:
branches:
- main
paths:
- "frameworks/angular/**"

jobs:
deploy-preview:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install dependencies
run: npm install
working-directory: ./frameworks/angular

- name: Install Vercel CLI
run: npm install -g vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=$VERCEL_TOKEN
working-directory: ./frameworks/angular

- name: Build Project Artifacts
run: vercel build --token=$VERCEL_TOKEN
working-directory: ./frameworks/angular

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=$VERCEL_TOKEN
working-directory: ./frameworks/angular

deploy-prod:
if: github.event_name == 'push'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install dependencies
run: npm install
working-directory: ./frameworks/angular

- name: Install Vercel CLI
run: npm install -g vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=$VERCEL_TOKEN
working-directory: ./frameworks/angular

- name: Build Project Artifacts
run: vercel build --prod --token=$VERCEL_TOKEN
working-directory: ./frameworks/angular

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN
working-directory: ./frameworks/angular
12 changes: 2 additions & 10 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Deploy to Vercel
name: Deploy Next.js Example

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_NEXTJS_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_DEPLOYMENT_TOKEN }}
on:
push:
Expand Down Expand Up @@ -34,10 +34,6 @@ jobs:
run: npm install
working-directory: ./frameworks/nextjs

- name: Build project
run: npm run build
working-directory: ./frameworks/nextjs

- name: Install Vercel CLI
run: npm install -g vercel@latest

Expand Down Expand Up @@ -70,10 +66,6 @@ jobs:
run: npm install
working-directory: ./frameworks/nextjs

- name: Build project
run: npm run build
working-directory: ./frameworks/nextjs

- name: Install Vercel CLI
run: npm install -g vercel@latest

Expand Down
81 changes: 81 additions & 0 deletions .github/workflows/nuxt-keycloakjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Deploy Nuxt keycloak-js Example
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_NUXT_KEYCLOAKJS_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_DEPLOYMENT_TOKEN }}
on:
push:
branches:
- main
paths:
- "frameworks/nuxt/keycloak-js/**"
pull_request:
branches:
- main
paths:
- "frameworks/nuxt/keycloak-js/**"

jobs:
deploy-preview:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install dependencies
run: npm install
working-directory: ./frameworks/nuxt/keycloak-js

- name: Install Vercel CLI
run: npm install -g vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=$VERCEL_TOKEN
working-directory: ./frameworks/nuxt/keycloak-js

- name: Build Project Artifacts
run: vercel build --token=$VERCEL_TOKEN
working-directory: ./frameworks/nuxt/keycloak-js

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=$VERCEL_TOKEN
working-directory: ./frameworks/nuxt/keycloak-js

deploy-prod:
if: github.event_name == 'push'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install dependencies
run: npm install
working-directory: ./frameworks/nuxt/keycloak-js

- name: Install Vercel CLI
run: npm install -g vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=$VERCEL_TOKEN
working-directory: ./frameworks/nuxt/keycloak-js

- name: Build Project Artifacts
run: vercel build --prod --token=$VERCEL_TOKEN
working-directory: ./frameworks/nuxt/keycloak-js

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN
working-directory: ./frameworks/nuxt/keycloak-js
81 changes: 81 additions & 0 deletions .github/workflows/nuxt-oidc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Deploy Nuxt oidc-client-ts Example
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_NUXT_OIDC_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_DEPLOYMENT_TOKEN }}
on:
push:
branches:
- main
paths:
- "frameworks/nuxt/oidc-client-ts/**"
pull_request:
branches:
- main
paths:
- "frameworks/nuxt/oidc-client-ts/**"

jobs:
deploy-preview:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install dependencies
run: npm install
working-directory: ./frameworks/nuxt/oidc-client-ts

- name: Install Vercel CLI
run: npm install -g vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=$VERCEL_TOKEN
working-directory: ./frameworks/nuxt/oidc-client-ts

- name: Build Project Artifacts
run: vercel build --token=$VERCEL_TOKEN
working-directory: ./frameworks/nuxt/oidc-client-ts

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=$VERCEL_TOKEN
working-directory: ./frameworks/nuxt/oidc-client-ts

deploy-prod:
if: github.event_name == 'push'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install dependencies
run: npm install
working-directory: ./frameworks/nuxt/oidc-client-ts

- name: Install Vercel CLI
run: npm install -g vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=$VERCEL_TOKEN
working-directory: ./frameworks/nuxt/oidc-client-ts

- name: Build Project Artifacts
run: vercel build --prod --token=$VERCEL_TOKEN
working-directory: ./frameworks/nuxt/oidc-client-ts

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN
working-directory: ./frameworks/nuxt/oidc-client-ts
82 changes: 82 additions & 0 deletions .github/workflows/react.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Deploy React Example

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_REACT_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_DEPLOYMENT_TOKEN }}
on:
push:
branches:
- main
paths:
- "frameworks/reactjs/**"
pull_request:
branches:
- main
paths:
- "frameworks/reactjs/**"

jobs:
deploy-preview:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install dependencies
run: npm install
working-directory: ./frameworks/reactjs

- name: Install Vercel CLI
run: npm install -g vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=$VERCEL_TOKEN
working-directory: ./frameworks/reactjs

- name: Build Project Artifacts
run: vercel build --token=$VERCEL_TOKEN
working-directory: ./frameworks/reactjs

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=$VERCEL_TOKEN
working-directory: ./frameworks/reactjs

deploy-prod:
if: github.event_name == 'push'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install dependencies
run: npm install
working-directory: ./frameworks/reactjs

- name: Install Vercel CLI
run: npm install -g vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=$VERCEL_TOKEN
working-directory: ./frameworks/reactjs

- name: Build Project Artifacts
run: vercel build --prod --token=$VERCEL_TOKEN
working-directory: ./frameworks/reactjs

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN
working-directory: ./frameworks/reactjs
Loading

0 comments on commit fcc596e

Please sign in to comment.