Skip to content

Commit

Permalink
Add goreleaser configuration to push Windows package to Chocolatey
Browse files Browse the repository at this point in the history
  • Loading branch information
josephschorr committed Jul 1, 2024
1 parent 9456ce0 commit b8bde87
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: "Release"
on: # yamllint disable-line rule:truthy
on: # yamllint disable-line rule:truthy
push:
tags:
- "*"
Expand Down Expand Up @@ -45,4 +45,7 @@ jobs:
HOMEBREW_TAP_GITHUB_TOKEN: "${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}"
GORELEASER_KEY: "${{ secrets.GORELEASER_KEY }}"
GEMFURY_PUSH_TOKEN: "${{ secrets.GEMFURY_PUSH_TOKEN }}"
CHOCOLATEY_API_KEY: "${{ secrets.CHOCOLATEY_API_KEY }}"
- name: "Release snap"
env:
SNAPCRAFT_STORE_CREDENTIALS: "${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}"
27 changes: 27 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,33 @@ archives:
- "README.md"
- "LICENSE"
- "completions/*"
format_overrides:
- goos: windows
format: zip
chocolateys:
- name: "spicedb"
package_source_url: "https://github.com/authzed/spicedb"
owners: "AuthZed, Inc"
title: "SpiceDB"
project_url: "https://github.com/authzed/spicedb"
use: "archive"
url_template: "https://github.com/authzed/spicedb/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
icon_url: "https://authzed.com/favicon.svg"
copyright: "2024 AuthZed, Inc"
license_url: "https://github.com/authzed/spicedb/blob/main/LICENSE"
require_license_acceptance: false
project_source_url: "https://github.com/authzed/spicedb"
docs_url: "https://docs.authzed.com"
bug_tracker_url: "https://github.com/authzed/spicedb/issues"
tags: "spicedb zanzibar authz rebac rbac abac fga"
summary: "SpiceDB is a graph database purpose-built for storing and evaluating access control data."
description: |
Open Source, Google Zanzibar-inspired permissions database to enable fine-grained access control for customer applications
release_notes: "https://github.com/authzed/spicedb/releases/tag/v{{ .Version }}"
api_key: "{{ .Env.CHOCOLATEY_API_KEY }}"
source_repo: "https://push.chocolatey.org/"
skip_publish: false
goamd64: "v1"
nfpms:
- vendor: "authzed inc."
homepage: "https://spicedb.io"
Expand Down

0 comments on commit b8bde87

Please sign in to comment.