Skip to content

Merge pull request #134 from gctools-outilsgc/pr_env #69

Merge pull request #134 from gctools-outilsgc/pr_env

Merge pull request #134 from gctools-outilsgc/pr_env #69

Workflow file for this run

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Deploy to Development
on:
push:
branches:
- master
workflow_dispatch:
env:
AZURE_WEBAPP_NAME: gccollab-dev
AZURE_WEBAPP_PACKAGE_PATH: './dist/gccollab-frontend'
NODE_VERSION: '16.14.2'
jobs:
build-test-and-deploy:
name: Build, Test and Deploy to Development
runs-on: windows-latest
if: ${{ !contains(github.event.head_commit.message, vars.IGNORE_DEPLOY) }}
environment:
name: Development
url: https://${{ env.AZURE_WEBAPP_NAME }}.azurewebsites.net/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install
run: npm install
- name: Build
run: npm run build-dev --if-present
- name: Test
run: npm run test --if-present -- --watch=false --browsers=ChromeHeadless
- name: 'Deploy to Azure WebApp'
uses: azure/webapps-deploy@v1
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}