mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-04-06 15:30:30 +08:00
Merge branch 'v4' into build-styles
This commit is contained in:
commit
fe5ef7b766
166
.github/workflows/release.yaml
vendored
166
.github/workflows/release.yaml
vendored
@ -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
|
||||
|
2
.swcrc
2
.swcrc
@ -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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-runtime-npm-7.16.3-b53f079b37-ab8ac88709.zip
vendored
Normal file
BIN
.yarn/cache/@babel-runtime-npm-7.16.3-b53f079b37-ab8ac88709.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@jest-create-cache-key-function-npm-27.3.1-667f510e08-cc431761cc.zip
vendored
Normal file
BIN
.yarn/cache/@jest-create-cache-key-function-npm-27.3.1-667f510e08-cc431761cc.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@swc-core-npm-1.2.112-17b738a25e-4e60e542db.zip
vendored
Normal file
BIN
.yarn/cache/@swc-core-npm-1.2.112-17b738a25e-4e60e542db.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@swc-jest-npm-0.2.9-15fb85e7dd-2463242d9e.zip
vendored
Normal file
BIN
.yarn/cache/@swc-jest-npm-0.2.9-15fb85e7dd-2463242d9e.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/acorn-npm-8.6.0-9de50afc7d-9d0de73b73.zip
vendored
Normal file
BIN
.yarn/cache/acorn-npm-8.6.0-9de50afc7d-9d0de73b73.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/ansi-regex-npm-6.0.1-8d663a607d-1ff8b7667c.zip
vendored
Normal file
BIN
.yarn/cache/ansi-regex-npm-6.0.1-8d663a607d-1ff8b7667c.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Loading…
x
Reference in New Issue
Block a user