Skip to content

Commit

Permalink
Update push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
armsnyder authored Nov 28, 2020
1 parent 7f77796 commit c8fe51e
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,21 @@ jobs:
- name: Deploy
run: make deploy

deploy-website:
name: Deploy Website
publish-website:
name: Publish Website
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:

- name: Configure AWS credentials
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-west-2

- name: Check out code
uses: actions/checkout@v2

- name: S3 Sync
uses: jakejarvis/s3-sync-action@v0.5.1
with:
args: --exclude '*' --include 'index.html' --cache-control max-age=300
env:
AWS_S3_BUCKET: othelgo.com
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-west-2'

- name: Publish Website
run: make website

0 comments on commit c8fe51e

Please sign in to comment.