diff --git a/.github/workflows/deploy-demo-app.yml b/.github/workflows/deploy-demo-app.yml new file mode 100644 index 00000000..669ffada --- /dev/null +++ b/.github/workflows/deploy-demo-app.yml @@ -0,0 +1,36 @@ +name: Deploy Demo App + +on: + push: + branches: + - master + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install dependencies + run: npm ci + + - name: Build the app + run: npm run build + + - name: Log in to Azure + uses: azure/login@v1 + with: + creds: ${{ secrets.azureenv }} + + - name: Deploy to Azure Web App + uses: azure/webapps-deploy@v2 + with: + app-name: Demo App + package: ${{ github.workspace }}/dist/apps/ngu-carousel-example/browser diff --git a/apps/ngu-carousel-example/project.json b/apps/ngu-carousel-example/project.json index d775104f..e31c2a68 100644 --- a/apps/ngu-carousel-example/project.json +++ b/apps/ngu-carousel-example/project.json @@ -163,6 +163,12 @@ } }, "defaultConfiguration": "production" + }, + "deploy": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "command": "npx ng build ngu-carousel-example" + } } } }