mirror of
https://github.com/lowdefy/lowdefy.git
synced 2024-12-09 05:41:08 +08:00
chore(github-actions): Test cdn publish.
This commit is contained in:
parent
1c31bb42b9
commit
04b903fcb7
35
.github/workflows/blocks-cdn.yaml
vendored
35
.github/workflows/blocks-cdn.yaml
vendored
@ -16,16 +16,37 @@ jobs:
|
||||
with:
|
||||
node-version: '12.x'
|
||||
- uses: actions/checkout@v1
|
||||
# - name: Install dependencies
|
||||
# run: yarn
|
||||
# - name: Build all
|
||||
# run: yarn build
|
||||
- name: Upload to blocks-cdn.lowdefy.com
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
- name: Build all
|
||||
run: yarn build
|
||||
- name: Upload blocks-cdn.lowdefy.com/blocks-basic
|
||||
run: |
|
||||
echo s3://blocks-cdn.lowdefy.com/blocks-antd/${{ github.event.number }}
|
||||
aws s3 sync packages/blocks/blocksBasic/dist s3://blocks-cdn.lowdefy.com/${{ github.event.number }}/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-basic
|
||||
# run: |
|
||||
# aws --region eu-west-1 s3 cp packages/blocks/blocksBasic/dist s3://blocks-cdn.lowdefy.com/${{ github.event.release.tag_name }}/blocks-basic
|
||||
# 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 cp packages/blocks/blocksAntd/dist s3://blocks-cdn.lowdefy.com/blocks-antd/${{ github.event.release.tag_name }}
|
||||
# aws --region eu-west-1 s3 cp packages/blocks/blocksAntd/dist s3://blocks-cdn.lowdefy.com/${{ github.event.release.tag_name }}/blocks-antd
|
||||
# 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 cp packages/blocks/blocksMarkdown/dist s3://blocks-cdn.lowdefy.com/${{ github.event.release.tag_name }}/blocks-markdown
|
||||
# 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
|
||||
# run: |
|
||||
# aws --region eu-west-1 s3 cp packages/blocks/blocksColor/dist s3://blocks-cdn.lowdefy.com/${{ github.event.release.tag_name }}/blocks-color
|
||||
# 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 }}
|
Loading…
Reference in New Issue
Block a user