Skip to content
Draft
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
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
build:
npm run build
deploy: TAG:=$(shell git describe --tags --exact-match 2>/dev/null)
deploy: BRANCH:=$(shell git symbolic-ref -q --short HEAD 2>/dev/null)
deploy: build
aws s3 cp --acl public-read --recursive docs/dist/ 's3://${CDN_S3_BUCKET}/libs/mt-block-editor-block-form-element/$(shell npx -c 'echo "$$npm_package_version"')/'
if [ "${TAG}" != "" ]; then \
aws s3 cp --acl public-read --recursive docs/dist/ 's3://${CDN_S3_BUCKET}/libs/mt-block-editor-block-form-element/${TAG}/'; \
elif [ "${BRANCH}" = "develop" ]; then \
aws s3 cp --acl public-read --recursive docs/dist/ 's3://${CDN_S3_BUCKET}/libs/mt-block-editor-block-form-element/${BRANCH}/'; \
elif [ "${BRANCH}" != "" ]; then \
aws s3 cp --acl public-read --recursive docs/dist/ 's3://${CDN_S3_BUCKET}/libs/mt-block-editor-block-form-element/branch/${BRANCH}/'; \
else \
echo "Can not find tag or branch to deploy"; \
exit 1; \
fi
49 changes: 0 additions & 49 deletions babel.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions i18next-parser.config.js

This file was deleted.

Loading