This action creates s3 objects to represent redirects that can be understood by a customized envoy proxy.
Required The path to the build directory where the docs site was constructed.
Required The path or HTTPS URL to the redirects JSON file.
Required The bucket to create the redirects in.
Required The prefix in the bucket to create the redirects in.
The number of redirect objects to create in parallel which can improve throughput. Default: 5
uses: tinymce/[email protected]
with:
build: ./build/
redirects: ./redirects.json
bucket: tiny-cloud-antora-docs-preview
prefix: ${{env.PR}}/${{env.RUN}}
parallel: 10Redirects can also be a URL so you can reference another branch, for example:
uses: tinymce/[email protected]
with:
build: ./build/
redirects: https://raw.githubusercontent.com/tinymce/tinymce-docs/refs/heads/main/redirects.json
bucket: tiny-cloud-antora-docs-preview
prefix: ${{env.PR}}/${{env.RUN}}
parallel: 10Open in devcontainer which has 2 containers:
- node
- minio
The node container is the main one and has environement variables setup to connect AWS tools to the minio container.
The node container also has the AWS CLI installed.
yarn test
yarn build
- Run
yarn tsc,yarn eslintandyarn testto check the build. - Bump
package.jsonversion. - Build outputs with
yarn buildand commit. - Tag commit with
git tag -a v1.0 -m "Release 1.0" - Push commit with tag
git push --follow-tags