Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: refine release task and add release notes generation #465

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 5 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,37 +34,14 @@ jobs:
tar -czvf release/build.tar.gz ./dist
cd release && shasum -a 256 build.tar.gz > sha256.txt && cd ../

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build.tar.gz
path: release/build.tar.gz

- name: Upload checksum of artifacts
uses: actions/upload-artifact@v4
with:
name: sha256.txt
path: release/sha256.txt

release:
name: Release artifacts
# Release artifacts only when all the artifacts are built successfully.
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v4

- name: Publish release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: 'Release ${{ github.ref_name }}'
generate_release_notes: true
prerelease: false
files: |
**/build.tar.gz
**/sha256.txt
release/build.tar.gz
release/sha256.txt

sync:
name: Create PR to update VERSION
Expand Down
Loading