Skip to content

Instantly share code, notes, and snippets.

@nvanmeurs
Last active May 15, 2020 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvanmeurs/db51f2fac3aa8d74b66cb00f0d7640f5 to your computer and use it in GitHub Desktop.
Save nvanmeurs/db51f2fac3aa8d74b66cb00f0d7640f5 to your computer and use it in GitHub Desktop.
name: Production Build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: NPM Install
run: |
npm install
- name: Production Build
run: |
npm run build
- name: Deploy to S3
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_PRODUCTION_BUCKET_NAME }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
SOURCE_DIR: "dist"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment