name: release

on:
  push:
    tags:
      - "v*"

jobs:
  jetpack-image:
    runs-on: [self-hosted, jetson, orin-nano-super]
    steps:
      - uses: actions/checkout@v4
      - name: Build JetPack image
        run: echo "JetPack image build + sign + attest — concrete wiring lands per deploy task"

  operator-tooling-tarball:
    runs-on: ubuntu-22.04
    needs: jetpack-image
    steps:
      - uses: actions/checkout@v4
      - name: Bundle operator-tooling tarball
        run: |
          mkdir -p dist
          tar -czf dist/operator-tooling.tar.gz docker-compose.yml docker/ _docs/
