rusty-fez 0.4.0

Agent-native management CLI for Fedora/RHEL (drives cockpit-bridge)
Documentation
name: cd

on:
  release:
    types: [published]

permissions:
  contents: read

jobs:
  upload-binaries:
    name: ${{ matrix.target }}
    runs-on: ubuntu-latest
    if: github.repository == 'major/fez'
    permissions:
      contents: write
    strategy:
      fail-fast: false
      matrix:
        include:
          - target: x86_64-unknown-linux-gnu
          - target: aarch64-unknown-linux-gnu
    steps:
      - name: Checkout repository
        uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10  # v6.0.3
        with:
          persist-credentials: false
      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9  # stable
        with:
          toolchain: "1.92"
          targets: ${{ matrix.target }}
      - name: Build and upload fez binary
        uses: taiki-e/upload-rust-binary-action@f0d45ae91ee7b8ee928de7a9d04d893a08bcbec6  # v1.30.2
        with:
          bin: fez
          target: ${{ matrix.target }}
          archive: fez-$tag-$target
          token: ${{ secrets.GITHUB_TOKEN }}