Skip to content

Commit b6c76f5

Browse files
committed
fix: publish pdf release notes
1 parent 201b7b0 commit b6c76f5

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

.github/workflows/release-pdf.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,13 @@ jobs:
101101
**Full Changelog**: https://github.com/${GITHUB_REPOSITORY}/commits/${TAG_NAME}
102102
EOF
103103
104-
- name: Create or update release
105-
env:
106-
GH_TOKEN: ${{ github.token }}
107-
TAG_NAME: ${{ steps.release.outputs.tag }}
108-
run: |
109-
gh release view "$TAG_NAME" >/dev/null 2>&1 || \
110-
gh release create "$TAG_NAME" --title "Hands-on Modern RL PDF ${TAG_NAME}" --notes-file release-notes.md
111-
gh release edit "$TAG_NAME" --title "Hands-on Modern RL PDF ${TAG_NAME}" --notes-file release-notes.md
112-
113-
- name: Upload PDF release asset
104+
- name: Publish PDF release
105+
uses: softprops/action-gh-release@v2
106+
with:
107+
tag_name: ${{ steps.release.outputs.tag }}
108+
name: Hands-on Modern RL PDF ${{ steps.release.outputs.tag }}
109+
body_path: release-notes.md
110+
files: ${{ env.PDF_PATH }}
111+
fail_on_unmatched_files: true
114112
env:
115-
GH_TOKEN: ${{ github.token }}
116-
TAG_NAME: ${{ steps.release.outputs.tag }}
117-
run: gh release upload "$TAG_NAME" "$PDF_PATH#Hands-on Modern RL PDF" --clobber
113+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)