Progress towards readiness #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |