Skip to content

Commit

Permalink
ci: correct version and tap upload
Browse files Browse the repository at this point in the history
  • Loading branch information
cterence committed Oct 20, 2023
1 parent cc4312e commit c8af768
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,21 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Fetch all tags
run: git fetch --force --tags

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20

- name: Get ldflags env values
run: |
echo "BUILD_TIMESTAMP=$(date +'%s')" >> $GITHUB_ENV
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
echo "COMMIT_HASH=${{ github.sha }}" >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
Expand Down
18 changes: 18 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,21 @@ changelog:
- "^build"
- "^ci"
- "^chore(release)"

brews:
# Post latest version
- name: guacamole
homepage: https://github.com/padok-team/guacamole
download_strategy: GitHubPrivateRepositoryReleaseDownloadStrategy
custom_require: download_strategy
tap:
owner: padok-team
name: homebrew-tap
# Post tagged version because alternative_names configuration is only for goreleaser pro version
- name: "{{ .Env.RELEASE_NAME }}"
homepage: https://github.com/padok-team/guacamole
download_strategy: GitHubPrivateRepositoryReleaseDownloadStrategy
custom_require: download_strategy
tap:
owner: padok-team
name: homebrew-tap

0 comments on commit c8af768

Please sign in to comment.