From 11c986be718cc2ec550bab884237fd6fae4ec99a Mon Sep 17 00:00:00 2001 From: RanXom Date: Sat, 13 Jun 2026 13:02:58 +0530 Subject: add release workflow --- .github/workflows/release.yml | 55 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/release.yml (limited to '.github/workflows') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6b6c49b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,55 @@ +name: Release + +on: + push: + tags: + - "v*" + +permissions: + contents: write + +jobs: + build: + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-latest + artifact_name: pomoru + asset_name: pomoru-${{ github.ref_name }}-linux-x86_64 + + - os: windows-latest + artifact_name: pomoru.exe + asset_name: pomoru-${{ github.ref_name }}-windows-x86_64.exe + + - os: macos-latest + artifact_name: pomoru + asset_name: pomoru-${{ github.ref_name }}-macos-aarch64 + + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Build + run: cargo build --release + + - name: Rename binary + shell: bash + run: | + mkdir dist + + if [[ "${{ runner.os }}" == "Windows" ]]; then + cp target/release/${{ matrix.artifact_name }} dist/${{ matrix.asset_name }} + else + cp target/release/${{ matrix.artifact_name }} dist/${{ matrix.asset_name }} + fi + + - name: Upload Release Asset + uses: softprops/action-gh-release@v2 + with: + files: dist/* -- cgit v1.2.3