Skip to content

Support for parent project (#1250) #1016

Support for parent project (#1250)

Support for parent project (#1250) #1016

name: Build and deploy to didapp/dev
on:
push:
branches:
- dev
- feat/*
paths:
- 'server/**'
- 'client/**'
- 'shared/**'
- 'webpack/**'
- 'package.json'
- '.deployment'
- '.deploy/**'
- '.github/workflows/on_push_dev_deploy.yml' # This file
jobs:
package:
name: Package did
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}_on_push_dev_deploy
cancel-in-progress: true
if: "!contains(github.event.head_commit.message, '[skip-ci]') && !contains(github.event.head_commit.message, '[skip-deploy]')"
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
with:
node-version: ${{ vars.NODE_VERSION }}
- run: |
npm ci --no-audit --no-fund --loglevel=error
- name: Create package
run: |
export NODE_OPTIONS="--max-old-space-size=8192"
npm run package
env:
NODE_ENV: production
INCLUDE_NODE_MODULES: '0'
INCLUDE_PACKAGE_LOCK_FILE: '0'
DISPLAY_VERSION_DETAILS: '1'
- uses: actions/upload-artifact@v3
with:
name: did-package
path: ./did-package.zip
deploy_azure:
name: Deploying to didapp/dev
runs-on: ubuntu-latest
needs: package
environment:
name: 'dev'
url: ${{ steps.deploy-to-app-slot.webapp-url }}
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: did-package
- name: 'Deploy package to didapp/dev'
id: deploy-to-app-slot
uses: azure/webapps-deploy@v2
with:
app-name: 'didapp'
slot-name: 'dev'
publish-profile: ${{ secrets.DIDAPP_DEV_PUBLISH_PROFILE }}
package: ./did-package.zip