Skip to content
Merged
Show file tree
Hide file tree
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
30 changes: 30 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Cross-Platform Package
on:
push:
branches: [main]
tags:
- "**"
pull_request:
branches: [main]

Expand Down Expand Up @@ -144,3 +146,31 @@ jobs:
compression-level: 0
if-no-files-found: error
path: target/msi/${{ matrix.arch }}/*.msi

release:
name: Publish GitHub Release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
needs: package
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Download packaged artifacts
uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true

- name: Publish release
uses: softprops/action-gh-release@v2
with:
files: |
dist/**/*.AppImage
dist/**/*.deb
dist/**/*.rpm
dist/**/*.dmg
dist/**/*.msi
fail_on_unmatched_files: true
generate_release_notes: true
prerelease: ${{ contains(github.ref_name, '-') }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ It is not recommended to edit `settings.json` directly. Prefer changing settings

### Release 🦀

You can download the binary from the [artifacts page](https://github.com/iamazy/termua/actions)
You can download the binary from the [Releases page](https://github.com/iamazy/termua/releases)

### Acknowledgements ❤️

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ termua-relay --listen 127.0.0.1:7231

### 发布 🦀

你可以在 [artifacts 页](https://github.com/iamazy/nxshell/actions) 下载二进制产物。
你可以在 [Releases 页](https://github.com/iamazy/nxshell/actions) 下载二进制产物。

### 致谢 ❤️

Expand Down
Loading