Merge pull request #2 from charmbracelet/release
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Prepare for release & add workflows and update readme
authored by Maas Lalani · committed by GitHub · parents 0cbe050, d0325fd · Browse files · 7 files·+137 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
7 files+137 added−0 removed
- other:+137 added−0 removed
Provenance
- Commit
62b7fe6- Tree
e270d66- Author
Maas Lalani <maas@lalani.dev>- Committer
GitHub <noreply@github.com>- Parent 1
0cbe050- Parent 2
d0325fd
7 files changed+137 added−0 removed
added:.github/workflows/build.yml+34 added
12345678910111213141516171819202122232425262728293031323334name: build
on: [push, pull_request]
jobs: build: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} env: GO111MODULE: "on" steps: - name: Install Go uses: actions/setup-go@v3 with: go-version: ~1.17
- name: Checkout code uses: actions/checkout@v3
- name: Download Go modules run: go mod download
- name: Build run: go build -v ./...
- name: Test run: go test -v -cover -timeout=30s ./...
snapshot: uses: charmbracelet/meta/.github/workflows/snapshot.yml@main secrets: goreleaser_key: ${{ secrets.GORELEASER_KEY }}No newline at end of fileadded:.github/workflows/goreleaser.yml+21 added
123456789101112131415161718192021name: goreleaser
on: push: tags: - v*.*.*
concurrency: group: goreleaser cancel-in-progress: true
jobs: goreleaser: uses: charmbracelet/meta/.github/workflows/goreleaser.yml@main secrets: docker_username: ${{ secrets.DOCKERHUB_USERNAME }} docker_token: ${{ secrets.DOCKERHUB_TOKEN }} gh_pat: ${{ secrets.PERSONAL_ACCESS_TOKEN }} goreleaser_key: ${{ secrets.GORELEASER_KEY }} aur_key: ${{ secrets.AUR_KEY }} fury_token: ${{ secrets.FURY_TOKEN }}added:.github/workflows/nightly.yml+14 added
1234567891011121314name: nightly
on: push: branches: - main
jobs: nightly: uses: charmbracelet/meta/.github/workflows/nightly.yml@main secrets: docker_username: ${{ secrets.DOCKERHUB_USERNAME }} docker_token: ${{ secrets.DOCKERHUB_TOKEN }} goreleaser_key: ${{ secrets.GORELEASER_KEY }}added:.github/workflows/soft-serve.yml+12 added
123456789101112name: soft-serve
on: push: branches: - main
jobs: soft-serve: uses: charmbracelet/meta/.github/workflows/soft-serve.yml@main secrets: ssh-key: "${{ secrets.CHARM_SOFT_SERVE_KEY }}"No newline at end of fileadded:.goreleaser.yml+13 added
12345678910111213includes: - from_url: url: charmbracelet/meta/main/goreleaser.yaml
variables: main: "." description: "Tasty Bubble Gum for your shell." github_url: "https://github.com/charmbracelet/gum" maintainer: "Maas Lalani <maas@charm.sh>" brew_commit_author_name: "Maas Lalani" brew_commit_author_email: "maas@charm.sh"
added:Dockerfile+3 added
1+FROM gcr.io/distroless/static2+COPY gum /usr/local/bin/gum3+ENTRYPOINT [ "/usr/local/bin/gum" ]modified:README.md+40 added
8 unmodified lines9 The following example is running from a [single Bash script](./examples/demo.sh).10 11 <img src="https://stuff.charm.sh/gum/gum.gif" width="900" alt="Shell running the Gum examples/demo.sh script">12 13+## Installation14+15+Use a package manager:16+17+```bash18+# macOS or Linux19+brew tap charmbracelet/tap && brew install charmbracelet/tap/gum20+21+# Arch Linux22+pacman -S gum23+24+# Nix25+nix-env -iA nixpkgs.gum26+27+# Debian/Ubuntu28+echo 'deb [trusted=yes] https://repo.charm.sh/apt/ /' | sudo tee /etc/apt/sources.list.d/charm.list29+sudo apt update && sudo apt install gum30+31+# Fedora32+echo '[charm]33+name=Charm34+baseurl=https://repo.charm.sh/yum/35+enabled=136+gpgcheck=0' | sudo tee /etc/yum.repos.d/charm.repo37+sudo yum install gum38+```39+40+Or download it:41+42+* [Packages][releases] are available in Debian and RPM formats43+* [Binaries][releases] are available for Linux, macOS, and Windows44+45+Or just install it with `go`:46+47+```bash48+go install github.com/charmbracelet/gum@latest49+```50+51+[releases]: https://github.com/charmbracelet/gum/releases52+53 ## Interaction54 55 #### Input56 Prompt your users for input with a simple command.119 unmodified lines