Skip to content

Progress towards readiness #29

Progress towards readiness

Progress towards readiness #29

name: Continuous Delivery
on:
push:
branches:
- master
jobs:
build:
name: Deploy Site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: chrislennon/[email protected]
- uses: borales/[email protected]
with:
cmd: global add @angular/cli
- uses: borales/[email protected]
with:
cmd: --cwd angular install
- uses: borales/[email protected]
with:
cmd: --cwd angular build:ci
- run: aws s3 sync --delete ./angular/dist/angular s3://aubronwood.com
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- run: aws cloudfront create-invalidation --distribution-id EQAYEO4JGQWPQ --paths "/*"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}