@@ -56,24 +56,21 @@ jobs:
56
56
run : |
57
57
export plugin=${{ needs.check-version.outputs.package_name }}
58
58
make package
59
+ - name : Extract release notes from ${{needs.check-version.outputs.package_name}}/RELEASE.md
60
+ id : extract
61
+ run : |
62
+ python tools/github_actions/extract_release_notes.py \
63
+ "${{needs.check-version.outputs.package_name}}/RELEASE.md" \
64
+ "Release ${{needs.check-version.outputs.package_version}}"
59
65
- name : Create GitHub Release
60
- uses : actions/github-script@v6
66
+ uses : softprops/action-gh-release@v1
61
67
with :
62
- github-token : ${{ secrets.GH_TAGGING_TOKEN }}
63
- script : |
64
- const package_name = "${{ needs.check-version.outputs.package_name }}"
65
- const package_version = "${{ needs.check-version.outputs.package_version }}"
66
- const response = await github.rest.repos.createRelease({
67
- owner: context.repo.owner,
68
- repo: context.repo.repo,
69
- tag_name: `${package_name}-${package_version}`,
70
- target_commitish: 'main',
71
- name: `${package_name}-${package_version}`,
72
- body: `Release ${package_version}`,
73
- draft: false,
74
- prerelease: false,
75
- });
76
- return response.data;
68
+ tag_name : ${{needs.check-version.outputs.package_name}}-${{needs.check-version.outputs.package_version}}
69
+ name : ${{needs.check-version.outputs.package_name}}-${{needs.check-version.outputs.package_version}}
70
+ body_path : release_body.txt
71
+ draft : false
72
+ prerelease : false
73
+ token : ${{ secrets.GH_TAGGING_TOKEN }}
77
74
- name : Set PyPI token
78
75
run : |
79
76
if [ "${{ needs.check-version.outputs.PACKAGE_NAME }}" == "kedro-airflow" ]; then
0 commit comments