title: Github actions to deploy static site to AWS S3
body: <p>I am trying to deploy static content to AWS S3 from Github actions. I created AWS id and secret environment variables</p>
  
  <p>and have this as main.yml</p>
  
  <pre><code>name: S3CI
  on: [push]
  jobs:
    build:
      runs-on: ubuntu-latest
      steps:
      - uses: actions/checkout@v1
      - 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: Build static site
      - run: yarn install &amp;&amp; npm run-script build
      - name: Deploy static site to S3 bucket
        run: aws s3 sync ./dist/ s3://awss3-blog --delete
  </code></pre>
  
  <p>But Github actions failed with error</p>
  
  <p>Invalid Workflow File</p>
  
  <p>DETAILS
  every step must define a uses or run key</p>