Merge branch 'v4' into build-styles

This commit is contained in:
Gerrie van Wyk 2021-11-25 17:26:36 +02:00 committed by GitHub
commit fe5ef7b766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
351 changed files with 2036 additions and 6630 deletions

View File

@ -22,46 +22,8 @@ jobs:
- name: yarn build
run: yarn build
# TODO: Upload client to cdn
# - name: Upload blocks-cdn.lowdefy.com/renderer
# run: |
# aws --region eu-west-1 s3 sync packages/renderer/dist s3://blocks-cdn.lowdefy.com/${{ github.event.release.tag_name }}/renderer --acl public-read --cache-control 'public, max-age=31536000'
# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_BLOCKS_CDN_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_BLOCKS_CDN_SECRET_ACCESS_KEY }}
- name: Upload blocks-cdn.lowdefy.com/blocks-basic
run: |
aws --region eu-west-1 s3 sync packages/blocks/blocksBasic/dist s3://blocks-cdn.lowdefy.com/${{ github.event.release.tag_name }}/blocks-basic --acl public-read --cache-control 'public, max-age=31536000'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_BLOCKS_CDN_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_BLOCKS_CDN_SECRET_ACCESS_KEY }}
- name: Upload blocks-cdn.lowdefy.com/blocks-antd
run: |
aws --region eu-west-1 s3 sync packages/blocks/blocksAntd/dist s3://blocks-cdn.lowdefy.com/${{ github.event.release.tag_name }}/blocks-antd --acl public-read --cache-control 'public, max-age=31536000'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_BLOCKS_CDN_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_BLOCKS_CDN_SECRET_ACCESS_KEY }}
- name: Upload blocks-cdn.lowdefy.com/blocks-markdown
run: |
aws --region eu-west-1 s3 sync packages/blocks/blocksMarkdown/dist s3://blocks-cdn.lowdefy.com/${{ github.event.release.tag_name }}/blocks-markdown --acl public-read --cache-control 'public, max-age=31536000'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_BLOCKS_CDN_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_BLOCKS_CDN_SECRET_ACCESS_KEY }}
- name: Upload blocks-cdn.lowdefy.com/blocks-color-selectors
run: |
aws --region eu-west-1 s3 sync packages/blocks/blocksColorSelectors/dist s3://blocks-cdn.lowdefy.com/${{ github.event.release.tag_name }}/blocks-color-selectors --acl public-read --cache-control 'public, max-age=31536000'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_BLOCKS_CDN_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_BLOCKS_CDN_SECRET_ACCESS_KEY }}
- name: Upload blocks-cdn.lowdefy.com/blocks-echarts
run: |
aws --region eu-west-1 s3 sync packages/blocks/blocksECharts/dist s3://blocks-cdn.lowdefy.com/${{ github.event.release.tag_name }}/blocks-echarts --acl public-read --cache-control 'public, max-age=31536000'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_BLOCKS_CDN_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_BLOCKS_CDN_SECRET_ACCESS_KEY }}
# --no-verify-access to use automation tokens https://github.com/lerna/lerna/issues/2788
# --ignore-scripts to aovoid scripts that could read npm token
# --ignore-scripts to avoid scripts that could read npm token
# --yes to autoconfirm in ci
# --pre-dist-tag do not tag prereleases as latest
- name: publish to npm
@ -69,74 +31,74 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
# - name: Cache Docker layers
# uses: actions/cache@v2
# with:
# path: /tmp/.buildx-cache
# key: ${{ runner.os }}-buildx-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-buildx-
- name: Docker meta lowdefy
id: meta_lowdefy
uses: docker/metadata-action@v3
with:
images: lowdefy/lowdefy
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
# - name: Docker meta lowdefy
# id: meta_lowdefy
# uses: docker/metadata-action@v3
# with:
# images: lowdefy/lowdefy
# tags: |
# type=semver,pattern={{version}}
# type=semver,pattern={{major}}.{{minor}}
# type=semver,pattern={{major}}
- name: Docker meta lowdefy-aws-lambda
id: meta_lowdefy_aws_lambda
uses: docker/metadata-action@v3
with:
images: lowdefy/lowdefy-aws-lambda
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
# - name: Docker meta lowdefy-aws-lambda
# id: meta_lowdefy_aws_lambda
# uses: docker/metadata-action@v3
# with:
# images: lowdefy/lowdefy-aws-lambda
# tags: |
# type=semver,pattern={{version}}
# type=semver,pattern={{major}}.{{minor}}
# type=semver,pattern={{major}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKER_HUB_USERNAME }}
# password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
id: docker_build_lowdefy
uses: docker/build-push-action@v2
with:
context: ./packages/servers/serverDocker/
push: true
tags: ${{ steps.meta_lowdefy.outputs.tags }}
labels: ${{ steps.meta_lowdefy.outputs.labels }}
platforms: linux/amd64,linux/arm64
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
# - name: Build and push
# id: docker_build_lowdefy
# uses: docker/build-push-action@v2
# with:
# context: ./packages/servers/serverDocker/
# push: true
# tags: ${{ steps.meta_lowdefy.outputs.tags }}
# labels: ${{ steps.meta_lowdefy.outputs.labels }}
# platforms: linux/amd64,linux/arm64
# cache-from: type=local,src=/tmp/.buildx-cache
# cache-to: type=local,dest=/tmp/.buildx-cache
- name: Build and push AWS Lambda
id: docker_build_lowdefy_aws_lambda
uses: docker/build-push-action@v2
with:
context: ./packages/servers/serverAwsLambda/
push: true
tags: ${{ steps.meta_lowdefy_aws_lambda.outputs.tags }}
labels: ${{ steps.meta_lowdefy_aws_lambda.outputs.labels }}
platforms: linux/amd64
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
# - name: Build and push AWS Lambda
# id: docker_build_lowdefy_aws_lambda
# uses: docker/build-push-action@v2
# with:
# context: ./packages/servers/serverAwsLambda/
# push: true
# tags: ${{ steps.meta_lowdefy_aws_lambda.outputs.tags }}
# labels: ${{ steps.meta_lowdefy_aws_lambda.outputs.labels }}
# platforms: linux/amd64
# cache-from: type=local,src=/tmp/.buildx-cache
# cache-to: type=local,dest=/tmp/.buildx-cache-new
# Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
# # Temp fix
# # https://github.com/docker/build-push-action/issues/252
# # https://github.com/moby/buildkit/issues/1896
# - name: Move cache
# run: |
# rm -rf /tmp/.buildx-cache
# mv /tmp/.buildx-cache-new /tmp/.buildx-cache

3461
.pnp.cjs generated

File diff suppressed because it is too large Load Diff

2
.swcrc
View File

@ -1,5 +1,5 @@
{
"exclude": [".*.test.js$", ".*/tests/.*"],
"exclude": [".*.test.js$", ".*/tests/.*", ".*/__mocks__/.*"],
"jsc": {
"parser": {
"syntax": "ecmascript",

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More