Skip to content
This repository has been archived by the owner on Feb 24, 2025. It is now read-only.

Commit

Permalink
feat: better release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
xarunoba committed Nov 8, 2024
1 parent d7b4beb commit 873ce86
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,15 @@ jobs:
run: |
sha256sum zed-nightly-vulkan-${{ needs.check.outputs.date }}.zip > zed-nightly-vulkan-${{ needs.check.outputs.date }}.zip.sha256
sha256sum zed-nightly-opengl-${{ needs.check.outputs.date }}.zip > zed-nightly-opengl-${{ needs.check.outputs.date }}.zip.sha256
- name: Get Tag Information
id: tag_info
run: |
tag_info=$(curl -s "https://api.github.com/repos/zed-industries/zed/git/refs/tags/nightly" | jq -r '.object.sha')
echo "tag_info=$tag_info" >> $GITHUB_OUTPUT
- name: Generate Release Notes from Zed
run: curl -s "https://api.github.com/repos/zed-industries/zed/git/commits/${{ steps.tag_info.outputs.tag_info }}" > CHANGELOG.txt
- name: Generate Changelog
run: echo "See [Zed release note](https://github.com/zed-industries/zed/releases/tag/nightly) for more information." > CHANGELOG.txt
run: echo "\n---\nSee [Zed release note](https://github.com/zed-industries/zed/releases/tag/nightly) for more information." > CHANGELOG.txt
- name: Upload release build artifact to GitHub Release
uses: softprops/action-gh-release@v2
with:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ jobs:
run: |
sha256sum zed-preview-vulkan-${{ needs.check.outputs.latest_prerelease }}.zip > zed-preview-vulkan-${{ needs.check.outputs.latest_prerelease }}.zip.sha256
sha256sum zed-preview-opengl-${{ needs.check.outputs.latest_prerelease }}.zip > zed-preview-opengl-${{ needs.check.outputs.latest_prerelease }}.zip.sha256
- name: Generate Changelog
run: echo "See [Zed release note](https://github.com/zed-industries/zed/releases/tag/${{ needs.check.outputs.latest_prerelease }}) for more information." >> CHANGELOG.txt
- name: Generate Release Notes from Zed
run: curl -s https://api.github.com/repos/zed-industries/zed/releases/tags/${{ needs.check.outputs.latest_prerelease }} | jq -r .body > CHANGELOG.txt
- name: Generate Release Footer
run: echo "\n---\nSee [Zed release note](https://github.com/zed-industries/zed/releases/tag/${{ needs.check.outputs.latest_prerelease }}) for more information." >> CHANGELOG.txt
- name: Upload release build artifact to GitHub Release
uses: softprops/action-gh-release@v2
with:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ jobs:
run: |
sha256sum zed-vulkan-${{ needs.check.outputs.latest_release }}.zip > zed-vulkan-${{ needs.check.outputs.latest_release }}.zip.sha256
sha256sum zed-opengl-${{ needs.check.outputs.latest_release }}.zip > zed-opengl-${{ needs.check.outputs.latest_release }}.zip.sha256
- name: Generate Changelog
run: echo "See [Zed release note](https://github.com/zed-industries/zed/releases/tag/${{ needs.check.outputs.latest_release }}) for more information." >> CHANGELOG.txt
- name: Generate Release Notes from Zed
run: curl -s https://api.github.com/repos/zed-industries/zed/releases/tags/${{ needs.check.outputs.latest_release }} | jq -r .body > CHANGELOG.txt
- name: Generate Release Footer
run: echo "\n---\nSee [Zed release note](https://github.com/zed-industries/zed/releases/tag/${{ needs.check.outputs.latest_release }}) for more information." >> CHANGELOG.txt
- name: Upload release build artifact to GitHub Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit 873ce86

Please sign in to comment.