Skip to content

Commit 58236fe

Browse files
committed
add on demand deploy git hub workflow
1 parent 775abe7 commit 58236fe

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Deploy App
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
deploy:
8+
name: Deploy App
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
max-parallel: 1
12+
matrix:
13+
node-version: ['16']
14+
os: [ubuntu-latest]
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- name: npm install
23+
run: npm i
24+
- name: Setup CLI
25+
uses: adobe/aio-cli-setup-action@3.3.0
26+
with:
27+
os: ${{ matrix.os }}
28+
version: 10.x.x
29+
- name: Auth
30+
uses: adobe/aio-apps-action@3.3.0
31+
with:
32+
os: ${{ matrix.os }}
33+
command: oauth_sts
34+
CLIENTID: ${{ secrets.CLIENTID }}
35+
CLIENTSECRET: ${{ secrets.CLIENTSECRET}}
36+
TECHNICALACCOUNTID: ${{ secrets.TECHNICALACCID }}
37+
TECHNICALACCOUNTEMAIL: ${{ secrets.TECHNICALACCEMAIL }}
38+
IMSORGID: ${{ secrets.IMSORGID_STAGE }}
39+
SCOPES: ${{ secrets.SCOPES_STAGE }}
40+
- name: Build
41+
env:
42+
AIO_RUNTIME_NAMESPACE: ${{ secrets.AIO_RUNTIME_NAMESPACE }}
43+
uses: adobe/aio-apps-action@3.3.0
44+
with:
45+
os: ${{ matrix.os }}
46+
command: build
47+
- name: Deploy
48+
env:
49+
AIO_RUNTIME_NAMESPACE: ${{ secrets.AIO_RUNTIME_NAMESPACE }}
50+
AIO_RUNTIME_AUTH: ${{ secrets.AIO_RUNTIME_AUTH }}
51+
AIO_PROJECT_ID: ${{ secrets.AIO_PROJECT_ID }}
52+
AIO_PROJECT_NAME: ${{ secrets.AIO_PROJECT_NAME }}
53+
AIO_PROJECT_ORG_ID: ${{ secrets.AIO_PROJECT_ORG_ID }}
54+
AIO_PROJECT_WORKSPACE_ID: ${{ secrets.AIO_PROJECT_WORKSPACE_ID }}
55+
AIO_PROJECT_WORKSPACE_NAME: ${{ secrets.AIO_PROJECT_WORKSPACE_NAME }}
56+
AIO_PROJECT_WORKSPACE_DETAILS_SERVICES: ${{ secrets.AIO_PROJECT_WORKSPACE_DETAILS_SERVICES }}
57+
uses: adobe/aio-apps-action@3.3.0
58+
with:
59+
os: ${{ matrix.os }}
60+
command: deploy
61+
noPublish: true

0 commit comments

Comments
 (0)