Skip to content

Commit

Permalink
feat: Github action for deploying to production on new release (#161)
Browse files Browse the repository at this point in the history
* feat: Github action for deploying to production on new release

* fix: added a condition to the Github deploy prod action
  • Loading branch information
askayastha22 authored Dec 1, 2023
1 parent 9a9ceca commit 6288ae1
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy to Prod

on:
release:
types: [created]

jobs:
deploy:
if: github.repository_owner == 'adobe'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Run npm scripts
env:
CI: true
AIO_RUNTIME_AUTH: ${{ secrets.AIO_RUNTIME_AUTH_PROD }}
AIO_RUNTIME_NAMESPACE: 245265-879aquaant
AIO_RUNTIME_APIHOST: 'https://adobeioruntime.net'
FIREFALL_ENDPOINT: 'https://firefall.adobe.io'
FIREFALL_API_KEY: aem-sidekick-genai-assistant
IMS_ENDPOINT: 'https://ims-na1.adobelogin.com'
IMS_CLIENT_ID: aem-genai-assistant
IMS_SERVICE_CLIENT_ID: aem-sidekick-genai-assistant
IMS_SERVICE_CLIENT_SECRET: ${{ secrets.IMS_SERVICE_CLIENT_SECRET }}
IMS_SERVICE_PERM_AUTH_CODE: ${{ secrets.IMS_SERVICE_PERM_AUTH_CODE }}
IMS_PRODUCT_CONTEXT: dma_aem_cloud
run: |
npm install
npm run grammar
npm run build
npm run lint
npm run test
npm run deploy

0 comments on commit 6288ae1

Please sign in to comment.