Skip to content

Commit 29ad6a7

Browse files
authored
chore(ci): upload CHANGELOG.md on release
1 parent 60854ec commit 29ad6a7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
release_name: Release ${{ github.ref }}
5353
draft: false
5454
prerelease: false
55-
- name: Upload Release Asset
55+
- name: Upload dist
5656
if: startsWith(github.ref, 'refs/tags/v') && matrix.node-version == '12'
5757
uses: actions/[email protected]
5858
env:
@@ -62,6 +62,16 @@ jobs:
6262
asset_path: dist/media-stream-library.min.js
6363
asset_name: media-stream-library.min.js
6464
asset_content_type: application/javascript
65+
- name: Upload changelog
66+
if: startsWith(github.ref, 'refs/tags/v') && matrix.node-version == '12'
67+
uses: actions/[email protected]
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
with:
71+
upload_url: ${{ steps.release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
72+
asset_path: CHANGELOG.md
73+
asset_name: CHANGELOG.md
74+
asset_content_type: text/markdown
6575
- name: Deploy NPM package
6676
if: startsWith(github.ref, 'refs/tags/v') && matrix.node-version == '12'
6777
env:

0 commit comments

Comments
 (0)