mirror of
https://github.com/charmbracelet/gum
synced 2024-05-10 02:06:36 +02:00
feat(ci): add ci build and goreleaser
This commit is contained in:
parent
b58dc52fc8
commit
9c8ac09dc6
34
.github/workflows/build.yml
vendored
Normal file
34
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: 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 }}
|
21
.github/workflows/goreleaser.yml
vendored
Normal file
21
.github/workflows/goreleaser.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: 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 }}
|
14
.github/workflows/nightly.yml
vendored
Normal file
14
.github/workflows/nightly.yml
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
name: 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 }}
|
12
.github/workflows/soft-serve.yml
vendored
Normal file
12
.github/workflows/soft-serve.yml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
name: 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 }}"
|
13
.goreleaser.yml
Normal file
13
.goreleaser.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
includes:
|
||||
- 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"
|
||||
|
||||
|
Loading…
Reference in a new issue