chore: Update readme #336
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# main only | |
name: Publish docs | |
on: | |
push: | |
branches: [main] | |
jobs: | |
docs-menu: | |
name: Publish the docs menu | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 # Default is 360 | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_ASSETS_AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_ASSETS_AWS_SECRET_ACCESS_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
# Upload menu.json with a cache of 60 seconds (instead of the default 24h on the CloudFront distribution) | |
- run: 'aws s3 cp docs/menu.json s3://assets.public.serverless/website/framework/docs/menu.json --cache-control max-age=60 --region us-east-2' |