chore(github-actions): Test cdn publish.

This commit is contained in:
Gervwyk 2021-02-05 15:44:11 +02:00
parent 1c31bb42b9
commit 04b903fcb7

View File

@ -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 }}