Skip to content

Commit

Permalink
update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoisaiah committed Sep 27, 2023
1 parent 867af2d commit 8536831
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCOOP_BUCKET_GITHUB_TOKEN: ${{ secrets.SCOOP_BUCKET_GITHUB_TOKEN }}
FURY_TOKEN: ${{ secrets.FURY_PUSH_TOKEN }}
FURY_USERNAME: ${{ secrets.FURY_USERNAME }}
92 changes: 68 additions & 24 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
project_name: focus

before:
hooks:
- go mod download

builds:
- env:
- CGO_ENABLED=1
Expand All @@ -16,16 +19,16 @@ builds:
- goos: linux
goarch: arm64
main: ./cmd/focus

archives:
- files:
- LICENCE
- README.md
- CHANGELOG.md
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
- goos: windows
format: zip

snapshot:
name_template: '{{ .Tag }}-next'
changelog:
Expand All @@ -34,11 +37,9 @@ changelog:
exclude:
- '^docs:'
- '^test:'

nfpms:
- id: focus
package_name: focus
file_name_template:
'{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
- id: main_packages
vendor: Freshman
homepage: https://freshman.tech
maintainer: Ayooluwa Isaiah <[email protected]>
Expand All @@ -48,22 +49,65 @@ nfpms:
formats:
- deb
- rpm
scoop:
url_template:
'https://github.com/ayoisaiah/focus/releases/download/{{ .Tag }}/{{
.ArtifactName }}'
bucket:
owner: ayoisaiah
name: scoop-bucket
token: '{{ .Env.SCOOP_BUCKET_GITHUB_TOKEN }}'
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: 'Scoop update for {{ .ProjectName }} version {{ .Tag }}'
homepage: 'https://github.com/ayoisaiah/focus'
description:
'Focus is a command-line productivity timer based on the Pomodoro Technique'
license: MIT

overrides:
deb:
dependencies:
- libasound2-dev

rpm:
dependencies:
- alsa-lib-devel

- id: other_packages
vendor: Freshman
homepage: https://freshman.tech
maintainer: Ayooluwa Isaiah <[email protected]>
description:
Focus is a command-line productivity timer based on the Pomodoro Technique
license: MIT
formats:
- apk
- termux.deb
- archlinux

dependencies:
- libasound2-dev

overrides:
archlinux:
dependencies:
- alsa-lib

publishers:
- name: fury.io
ids:
- main_packages
dir: '{{ dir .ArtifactPath }}'
cmd:
curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_PUSH_TOKEN
}}@push.fury.io/{{ .Env.FURY_USERNAME }}/

#TODO: Support chocolatey
#TODO: Support Winget

scoops:
- url_template:
'https://github.com/ayoisaiah/focus/releases/download/{{ .Tag }}/{{
.ArtifactName }}'
repository:
owner: ayoisaiah
name: scoop-bucket
token: '{{ .Env.SCOOP_BUCKET_GITHUB_TOKEN }}'
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: 'Scoop update for {{ .ProjectName }} {{ .Tag }}'
homepage: 'https://github.com/ayoisaiah/focus'
description:
'Focus is a command-line productivity timer based on the Pomodoro
Technique'
license: MIT

brews:
- install: |-
Expand Down

0 comments on commit 8536831

Please sign in to comment.