Skip to content

Commit

Permalink
feat(devops): continuous integration to azure
Browse files Browse the repository at this point in the history
  • Loading branch information
programad authored Aug 29, 2020
1 parent b972012 commit 9d6eb19
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 21 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/continuousintegration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: continuous integration

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
semantic-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branches: 'master'
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master

- name: Setup Node 10.x
uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: 'npm install, build, and test'
run: |
npm install
npm run build --if-present
npm run test --if-present
- name: 'Deploy'
uses: azure/webapps-deploy@v2
with:
app-name: ceros-ski
publish-profile: ${{ secrets.AZUREWEBAPPPUBLISHPROFILE }}
21 changes: 0 additions & 21 deletions .github/workflows/semanticrelease.yml

This file was deleted.

0 comments on commit 9d6eb19

Please sign in to comment.