Add tab completion support for commands and profiles in CLI #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'src/**' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| jobs: | |
| release: | |
| name: Build and release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Build release binary | |
| run: cargo build --release | |
| - name: Rename binary for release | |
| run: cp target/release/penv penv-linux-x86_64 | |
| - name: Publish latest release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: latest | |
| name: Latest | |
| body: | | |
| Latest build from the `main` branch. | |
| ## Installation | |
| Download the pre-built binary directly: | |
| ```bash | |
| mkdir -p ~/.local/bin | |
| curl -L https://github.com/${{ github.repository }}/releases/download/latest/penv-linux-x86_64 -o ~/.local/bin/penv | |
| chmod +x ~/.local/bin/penv | |
| ``` | |
| make_latest: true | |
| files: penv-linux-x86_64 |