Skip to content

Commit 8bb7ee7

Browse files
committed
updated the readme doc
1 parent 56e25d9 commit 8bb7ee7

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,20 @@
1-
# action-deploy-webapp-aws
2-
Deploys a webapp to an s3 bucket and then invalidates cloudfront entry
1+
# Github Actions - S3 and Cloudfront Invalidation
2+
This is a simple utility to deploy to AWS S3 bucket and invalidate a cloudfront id. It is that straightforward. See usage below
3+
4+
### Usage:
5+
Just place this in your code underneath your build action within the steps, update the variables and secrets and that is it.
6+
```yaml
7+
- name: Deploy application to AWS S3 and invalidate cloudfront cache
8+
uses: pukonu/action-deploy-webapp-aws@v.1.0
9+
id: deploy
10+
with:
11+
build_path: './path/to/build/folder'
12+
bucket_name: '<AWS BUCKET NAME>'
13+
bucket_key: ''
14+
distribution_invalidation_path: '/*'
15+
env:
16+
DISTRIBUTION_ID: '<DISTRIBUTION ID>'
17+
AWS_REGION: '<AWS REGION>'
18+
AWS_ACCESS_KEY_ID: '<AWS_ACCESS_KEY_ID>'
19+
AWS_SECRET_ACCESS_KEY: '<AWS_SECRET_ACCESS_KEY>'
20+
```

0 commit comments

Comments
 (0)