diff --git a/.github/workflows/deploy_prod.yml b/.github/workflows/deploy_prod.yml new file mode 100644 index 00000000..860e677c --- /dev/null +++ b/.github/workflows/deploy_prod.yml @@ -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 \ No newline at end of file