Skip to content

Commit

Permalink
Merge pull request #20 from alexgladd/develop
Browse files Browse the repository at this point in the history
Finish migration to Github actions for CI/CD
  • Loading branch information
alexgladd authored Apr 9, 2020
2 parents 06d8380 + b00bbd3 commit 415e839
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 45 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# CI workflow

name: CI

on: [ push, pull_request ]

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

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Install
run: npm ci

- name: Build
run: npm run build

- name: Test
run: npm test
env:
CI: true
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Deploy workflow

name: Deployment

on:
release:
types: [ published ]

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

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Install
run: npm ci

- name: Build
run: npm run build

- name: AWS Setup
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: S3 Sync
run: |
aws s3 sync build s3://gladdbiz-bmactivity --delete
- name: CloudFront Invalidation
run: |
aws cloudfront create-invalidation --distribution-id ENWIL8ISNZ386 --paths "/*"
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Brandmeister Top Activity

Master: [![Build status](https://travis-ci.com/alexgladd/bm-hotgroups.svg?branch=master)](https://travis-ci.com/alexgladd/bm-hotgroups) Develop: [![Build status](https://travis-ci.com/alexgladd/bm-hotgroups.svg?branch=develop)](https://travis-ci.com/alexgladd/bm-hotgroups)
<p align="center">
<img src="https://github.com/alexgladd/bm-hotgroups/workflows/CI/badge.svg?branch=develop">&nbsp;
<img src="https://github.com/alexgladd/bm-hotgroups/workflows/Deployment/badge.svg">
</p>

Simple SPA that aggregates the *last heard* stream from the Brandmeister DMR network to show
the most active talk groups, callsigns, etc.
Expand Down
18 changes: 0 additions & 18 deletions cicd/deploy.sh

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bm-hotgroups",
"version": "0.2.1",
"version": "0.2.2",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.0-14",
Expand Down

0 comments on commit 415e839

Please sign in to comment.