Hello all, I’m trying out GitHub Actions in an attempt to get an AWS CLI command working.
I’ve found some information online about using hcl-syntax for setting up an AWS CLI workflow going, but since this syntax will soon be depricated I would like to find a yaml-based example.
In particular, I’m trying to get a “aws s3 cp” command running on push. This is what I’ve attempted so far, but it fails because I’ve messed up the syntax in some way ( note: that I’ve changed the real url to example.com):
name: DeployToAwsS3 on: push jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/aws/cli@master - with: - args: s3 cp . s3://www.example.com --recursive --exclude ".git/*" --exlucde ".github/*" - secrets: - AWS_ACCESS_KEY_ID - AWS_SECRET_ACCESS_KEY - uses: actions/aws/cli@master
Could someone provide an example in yaml for running an aws cli command on push?