From da1f34c5c43a4aa264a63ac313f8d32db01879eb Mon Sep 17 00:00:00 2001 From: Gervwyk Date: Fri, 5 Feb 2021 15:12:02 +0200 Subject: [PATCH] chore(github-actions): Test event parameter. --- .github/workflows/blocks-cdn.yaml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/blocks-cdn.yaml diff --git a/.github/workflows/blocks-cdn.yaml b/.github/workflows/blocks-cdn.yaml new file mode 100644 index 000000000..f603419a6 --- /dev/null +++ b/.github/workflows/blocks-cdn.yaml @@ -0,0 +1,35 @@ +name: Publish Blocks + +on: + pull_request: + branches: [ develop ] + # release: + # types: + # - published + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Setup Node + uses: actions/setup-node@v1 + 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 + run: | + echo s3://blocks-cdn.lowdefy.com/@lowdefy/blocks-antd@${{ github.event.push.push_id }}/dist + 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 to blocks-cdn.lowdefy.com + # run: | + # echo s3://blocks-cdn.lowdefy.com/@lowdefy/blocks-basic@${{ github.event.push.push_id }}/dist + # aws --region eu-west-1 s3 cp packages/blocks/blocksAntd/dist s3://blocks-cdn.lowdefy.com/@lowdefy/blocks-basic@${{ github.event.release.tag_name }}/dist + # 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 newline at end of file