Files
wx-cli/.github/workflows/release.yml
T
dependabot[bot] eb91993ca5 chore(deps): bump actions/checkout from 4 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-04 15:20:25 +00:00

37 lines
889 B
YAML

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-darwin
- name: Build release (arm64)
run: cargo build --release --target aarch64-apple-darwin
- name: Package binary
run: |
cd target/aarch64-apple-darwin/release
chmod +x wx-cli
tar czf wx-cli-${{ github.ref_name }}-macos-arm64.tar.gz wx-cli
mv wx-cli-${{ github.ref_name }}-macos-arm64.tar.gz ${{ github.workspace }}/
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: wx-cli-${{ github.ref_name }}-macos-arm64.tar.gz
generate_release_notes: true