File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 33version=$( npm pkg get version | sed ' s/"//g' )
44bucket=$1
55
6+ echo ::set-output name=current-version::$version
7+
68aws s3api put-object --bucket $bucket --key " content/$version /cwr.js" --body build/assets/cwr.js --cache-control max-age=604800
79aws s3api put-object --bucket $bucket --key " content/$version /LICENSE-THIRD-PARTY" --body LICENSE-THIRD-PARTY --cache-control max-age=604800
810aws s3api put-object --bucket $bucket --key " content/$version /LICENSE" --body LICENSE --cache-control max-age=604800
Original file line number Diff line number Diff line change 4545 npm run release
4646
4747 - name : Publish to CloudWatch RUM CDN
48+ id : publish-cdn
4849 run : |
4950 chmod u+x .github/scripts/deploy.sh
5051 .github/scripts/deploy.sh ${{ secrets.BUCKET }}
6061 env :
6162 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6263 with :
63- tag_name : ' aws-rum-web@ ${{ github.event.inputs. version }}'
64- release_name : ' Release ${{ github.event.inputs. version }}'
65- body : ' Please see [CHANGELOG](https://github.com/aws/aws-rum-web/blob/master/CHANGELOG.md) for details.'
64+ tag_name : ' v ${{ steps.publish-cdn.outputs.current- version }}'
65+ release_name : ' Release ${{ steps.publish-cdn.outputs.current- version }}'
66+ body : ' See [CHANGELOG](https://github.com/aws/aws-rum-web/blob/master/CHANGELOG.md) for details.'
6667 draft : true
6768 prerelease : false
You can’t perform that action at this time.
0 commit comments