Skip to content

Commit

Permalink
ci: snapcraft and winget packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jul 12, 2024
1 parent c5baea2 commit 50011e5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,18 @@ jobs:
go test -v ./...
go build -o timer .
- uses: sigstore/cosign-installer@v3.5.0
- name: setup-snapcraft
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
- uses: goreleaser/goreleaser-action@v6
if: success() && startsWith(github.ref, 'refs/tags/')
with:
distribution: goreleaser-pro
version: latest
version: nightly
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
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 }}
AUR_KEY: ${{ secrets.AUR_KEY }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
12 changes: 12 additions & 0 deletions goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ variables:
includes:
- from_url:
url: https://raw.githubusercontent.com/caarlos0/.goreleaserfiles/main/build.yml
- from_url:
url: https://raw.githubusercontent.com/caarlos0/goreleaserfiles/main/windows.yml
- from_url:
url: https://raw.githubusercontent.com/caarlos0/.goreleaserfiles/main/package_with_completions_and_manpages.yml
- from_url:
Expand All @@ -16,3 +18,13 @@ includes:

furies:
- account: caarlos0

snapcrafts:
- publish: true
summary: "{{.Var.description}}"
grade: stable
license: MIT
confinement: strict
apps:
org-stats:
command: timer

0 comments on commit 50011e5

Please sign in to comment.