Skip to content

Commit dabc7a1

Browse files
authored
ci(publish): move release notes out of dist (#1448)
1 parent a83a616 commit dabc7a1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/cd-publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,16 @@ jobs:
143143
echo "version=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
144144
echo "prerelease=${{ github.event.inputs.prerelease }}" >> $GITHUB_OUTPUT
145145
146+
- name: "[INIT] Move release notes"
147+
run: mv dist/RELEASE_NOTES.md ./RELEASE_NOTES.md
148+
146149
- name: "[RELEASE] Create GitHub release"
147150
uses: softprops/action-gh-release@v2
148151
with:
149152
name: Release ${{ steps.input.outputs.tag }}
150153
tag_name: ${{ steps.input.outputs.tag }}
151154
prerelease: ${{ steps.input.outputs.prerelease }}
152-
body_path: dist/RELEASE_NOTES.md
155+
body_path: ./RELEASE_NOTES.md
153156
files: dist/*
154157

155158
pypi-publish:
@@ -166,5 +169,8 @@ jobs:
166169
name: dist-artifacts
167170
path: dist/
168171

172+
- name: "[INIT] Remove release notes"
173+
run: rm dist/RELEASE_NOTES.md
174+
169175
- name: "[PUBLISH] PyPI"
170176
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)