Skip to content

Commit

Permalink
chore(ci): improve release process (#14)
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <[email protected]>
  • Loading branch information
caarlos0 authored Jun 5, 2021
1 parent 904f00e commit bbec4fb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 47 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ jobs:
uses: goreleaser/goreleaser-action@v2
if: success() && startsWith(github.ref, 'refs/tags/')
with:
distribution: goreleaser-pro
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
56 changes: 9 additions & 47 deletions goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,11 @@
project_name: tt
before:
hooks:
- go mod download
- ./scripts/completions.sh
builds:
- binary: tt
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
files:
- README.md
- LICENSE.md
- completions/*
brews:
- tap:
owner: caarlos0
name: homebrew-tap
variables:
homepage: https://github.com/caarlos0/tasktimer
description: Task Timer (tt) is a dead simple TUI task timer.
folder: Formula
install: |-
bin.install "tt"
bash_completion.install "completions/tt.bash" => "tt"
zsh_completion.install "completions/tt.zsh" => "_tt"
fish_completion.install "completions/tt.fish"
nfpms:
- maintainer: Carlos A Becker <[email protected]>
description: Task Timer (tt) is a dead simple TUI task timer.
homepage: https://github.com/caarlos0/tasktimer
license: MIT
contents:
- src: ./completions/tt.bash
dst: /etc/bash_completion.d/tt
- src: ./completions/tt.fish
dst: /usr/share/fish/completions/tt.fish
- src: ./completions/tt.zsh
dst: /usr/local/share/zsh/site-functions/_tt
formats:
- deb
- rpm
- apk

description: Task Timer (tt) is a dead simple TUI task timer
includes:
- from_url:
url: https://raw.githubusercontent.com/caarlos0/.goreleaserfiles/main/build.yml
- from_url:
url: https://raw.githubusercontent.com/caarlos0/.goreleaserfiles/main/package_with_completions.yml
- from_url:
url: https://raw.githubusercontent.com/caarlos0/.goreleaserfiles/main/release.yml

0 comments on commit bbec4fb

Please sign in to comment.