gshell 1.0.1

gshell is a shell for people who live in the terminal. It pairs familiar Unix behavior with a tighter core, fast interaction, and an interface built to stay out of the way.
Documentation
name: Release

on:
  push:
    tags:
      - "v*"
  workflow_dispatch:

permissions:
  contents: write

env:
  CARGO_TERM_COLOR: always

jobs:
  build-release-assets:
    name: Build ${{ matrix.target }}
    runs-on: ${{ matrix.runner }}
    strategy:
      fail-fast: false
      matrix:
        include:
          - runner: ubuntu-latest
            target: x86_64-unknown-linux-gnu
          - runner: macos-13
            target: x86_64-apple-darwin
          - runner: macos-14
            target: aarch64-apple-darwin

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable
        with:
          target: ${{ matrix.target }}

      - name: Cache cargo and target
        uses: Swatinem/rust-cache@v2

      - name: Build release binary
        run: cargo build --release --locked --target ${{ matrix.target }}

      - name: Package archive
        shell: bash
        run: |
          set -euo pipefail
          version="${GITHUB_REF_NAME#v}"
          archive_dir="gshell-${version}-${{ matrix.target }}"
          mkdir -p "$archive_dir/docs"
          cp "target/${{ matrix.target }}/release/gshell" "$archive_dir/gshell"
          cp README.md "$archive_dir/README.md"
          cp docs/install.md "$archive_dir/docs/install.md"
          cp docs/configuration.md "$archive_dir/docs/configuration.md"
          tar -czf "$archive_dir.tar.gz" "$archive_dir"
          shasum -a 256 "$archive_dir.tar.gz" > "$archive_dir.tar.gz.sha256"

      - name: Upload archive artifact
        uses: actions/upload-artifact@v4
        with:
          name: gshell-${{ matrix.target }}
          path: |
            gshell-*.tar.gz
            gshell-*.tar.gz.sha256

      - name: Publish GitHub release assets
        if: startsWith(github.ref, 'refs/tags/v')
        uses: softprops/action-gh-release@v2
        with:
          files: |
            gshell-*.tar.gz
            gshell-*.tar.gz.sha256