envx-secure 0.1.0

A CLI for .env file management: diff, audit, and encrypt
# .github/workflows/release.yml
name: Release

on:
  push:
    tags: ["v*"]

jobs:
  build:
    strategy:
      matrix:
        include:
          - os: ubuntu-latest
            target: x86_64-unknown-linux-gnu
            artifact: envx-linux-x86_64
          - os: macos-latest
            target: x86_64-apple-darwin
            artifact: envx-macos-x86_64
          - os: macos-latest
            target: aarch64-apple-darwin
            artifact: envx-macos-aarch64
          - os: windows-latest
            target: x86_64-pc-windows-msvc
            artifact: envx-windows-x86_64.exe

    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
        with:
          targets: ${{ matrix.target }}
      - run: cargo build --release --target ${{ matrix.target }}
      - name: Rename binary
        run: |
          cp target/${{ matrix.target }}/release/envx${{ matrix.os == 'windows-latest' && '.exe' || '' }} ${{ matrix.artifact }}
      - uses: softprops/action-gh-release@v2
        with:
          files: ${{ matrix.artifact }}