Skip to content

Commit

Permalink
Useful Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Attree committed Jan 30, 2020
1 parent bf356d5 commit 97b0506
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Github action to build an mkdocs site and sync it to S3 :rocket:
This is a very simple action to make publishing a static mkdocs site even easier.
This is a very simple action to make publishing a static [mkdocs](https://www.mkdocs.org/) site even easier.

## Usage
### `workflow.yml` example
Expand Down Expand Up @@ -30,6 +30,7 @@ jobs:
```

The s3 command uses the raw AWS CLI so any args supported within the CLI can be passed through in the with statement above. If you are going to use the above example verbatim, be warned `--delete` **permanently deletes** files in the S3 bucket that are **not** present in the latest version of your build.
The above example will build and deploy your site on any push to master. This means your public site in S3 should always be up to date with your Github repository mkdocs `docs` directory.

## Environment variables
The action requires at least `AWS_S3_BUCKET`, `AWS_ACCESS_KEY_ID` & `AWS_SECRET_ACCESS_KEY`. Store these as Github secrets and not statically typed in your configuration.
Expand Down

0 comments on commit 97b0506

Please sign in to comment.