Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 22 additions & 10 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ const project = new awscdk.AwsCdkTypeScriptApp({
uses: 'aws-actions/setup-sam@v2',
},
],
versionrcOptions: {
types: [
{ type: 'feat', hidden: true },
{ type: 'fix', hidden: true },
{ type: 'chore', hidden: true },
{ type: 'docs', hidden: true },
{ type: 'style', hidden: true },
{ type: 'refactor', hidden: true },
{ type: 'perf', hidden: true },
{ type: 'test', hidden: true },
],
},

buildWorkflow: true,
package: false,
Expand Down Expand Up @@ -169,21 +181,21 @@ project.release?.addJobs({
{
uses: 'actions/setup-node@v3',
with: {
'node-version': '14.x'
}
'node-version': '14.x',
},
},
{
name: 'Download build artifacts',
uses: 'actions/download-artifact@v3',
with: {
name: 'build-artifact',
path: 'dist'
}
path: 'dist',
},
},
{
name: 'Restore build artifact permissions',
run: 'cd dist && setfacl --restore=permissions-backup.acl',
continueOnError: true
continueOnError: true,
},
{
name: 'Upload Release Artifacts',
Expand All @@ -192,11 +204,11 @@ project.release?.addJobs({
GITHUB_REPOSITORY: '${{ github.repository }}',
GITHUB_REF: '${{ github.ref }}',
},
run: 'errout=$(mktemp); gh release upload $(cat dist/releasetag.txt) --clobber -R $GITHUB_REPOSITORY dist/tesseract-al2-x86.zip 2> $errout && true; exitcode=$?; if [ $exitcode -ne 0 ] && ! grep -q "Release.tag_name already exists" $errout; then cat $errout; exit $exitcode; fi'
}
]
}
})
run: 'errout=$(mktemp); gh release upload $(cat dist/releasetag.txt) --clobber -R $GITHUB_REPOSITORY dist/tesseract-al2-x86.zip 2> $errout && true; exitcode=$?; if [ $exitcode -ne 0 ] && ! grep -q "Release.tag_name already exists" $errout; then cat $errout; exit $exitcode; fi',
},
],
},
});
project.eslint?.addRules({
'prettier/prettier': ['error', { singleQuote: true, printWidth: 140, trailingComma: TrailingComma.ALL }],
});
Expand Down
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,19 @@ Tesseract OCR Lambda Layer

<!-- TOC -->

- [Tesseract OCR Lambda Layer](#tesseract-ocr-lambda-layer)
- [Quickstart](#quickstart)
- [Ready-to-use binaries](#ready-to-use-binaries)
- [Use with Serverless Framework](#use-with-serverless-framework)
- [Use with AWS CDK](#use-with-aws-cdk)
- [Use with Serverless Framework](#use-with-serverless-framework)
- [Use with AWS CDK](#use-with-aws-cdk)
- [Build tesseract layer from source using Docker](#build-tesseract-layer-from-source-using-docker)
- [available `Dockerfile`s](#available-dockerfiles)
- [Building a different tesseract version and/or language](#building-a-different-tesseract-version-andor-language)
- [Deployment size optimization](#deployment-size-optimization)
- [Building the layer binaries directly using CDK](#building-the-layer-binaries-directly-using-cdk)
- [Layer contents](#layer-contents)
- [available `Dockerfile`s](#available-dockerfiles)
- [Building a different tesseract version and/or language](#building-a-different-tesseract-version-andor-language)
- [Deployment size optimization](#deployment-size-optimization)
- [Building the layer binaries directly using CDK](#building-the-layer-binaries-directly-using-cdk)
- [Layer contents](#layer-contents)
- [Known Issues](#known-issues)
- [Avoiding Pillow library issues](#avoiding-pillow-library-issues)
- [Unable to import module 'handler': cannot import name '_imaging'](#unable-to-import-module-handler-cannot-import-name-_imaging)
- [Avoiding Pillow library issues](#avoiding-pillow-library-issues)
- [Unable to import module 'handler': cannot import name '_imaging'](#unable-to-import-module-handler-cannot-import-name-_imaging)
- [Contributors :heart:](#contributors-heart)

<!-- /TOC -->
Expand Down
Loading