-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Github action for deploying to production on new release (#161)
* feat: Github action for deploying to production on new release * fix: added a condition to the Github deploy prod action
- Loading branch information
1 parent
9a9ceca
commit 6288ae1
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |