From b9bef653ecbd08a467a283ef090068ff857d1318 Mon Sep 17 00:00:00 2001 From: A Farzat Date: Mon, 9 Mar 2026 08:57:15 +0300 Subject: Add release build to GitHub workflow --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 36f29cc..9062d46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,8 @@ on: push: branches: - master + tags: + - 'v*' pull_request: jobs: @@ -54,3 +56,33 @@ jobs: - name: Run tests run: cargo test --all + + release: + needs: test + if: startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Cache cargo + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: rust-${{ hashFiles('Cargo.lock') }} + + - name: Build release binary + run: cargo build --release + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: oreilly-epub-linux-x86_64 + path: target/release/oreilly-epub -- cgit v1.2.3-70-g09d2