Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
add a prod deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorsector committed Nov 1, 2019
1 parent 6124f2a commit 1cabdfb
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Production deployment

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: npm install and build webpack
run: |
npm install
npm run build
- uses: actions/upload-artifact@master
with:
name: webpack artifacts
path: public/

deploy:
name: Deploy Node.js app to AWS
needs: build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Download built artifact
uses: actions/download-artifact@master
with:
name: webpack artifacts
path: public

- name: Deploy to AWS
uses: docker://admiralawkbar/aws-nodejs:latest
env:
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}

0 comments on commit 1cabdfb

Please sign in to comment.