Skip to content

Commit

Permalink
Specify GoReleaser v2.3 to avoid issue in latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
foodprocessor committed Nov 7, 2024
1 parent 258c019 commit c74e9fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
if: ${{ ! steps.restore-compiled-gui.outputs.cache-hit }}
run: pip3 install -r gui/requirements.txt
shell: bash
-
-
name: Install libxcb-cursor0
if: ${{ ! steps.restore-compiled-gui.outputs.cache-hit && matrix.os == 'ubuntu-latest' }}
run: |-
Expand Down Expand Up @@ -226,7 +226,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Zig
run: |
curl -L https://ziglang.org/download/${{ env.zig }}/zig-linux-x86_64-${{ env.zig }}.tar.xz -o zig.tar.xz
Expand Down Expand Up @@ -288,6 +288,7 @@ jobs:
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: '~> v2.3'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 8 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ builds:
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- -s -w -X github.com/Seagate/cloudfuse/common.GitCommit={{.Commit}} -X github.com/Seagate/cloudfuse/common.CommitDate={{ .CommitDate }}

- id: windows-startup
main: ./tools/windows-startup/main.go
binary: windows-startup
Expand All @@ -41,7 +41,7 @@ builds:
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- -s -w -X github.com/Seagate/cloudfuse/common.GitCommit={{.Commit}} -X github.com/Seagate/cloudfuse/common.CommitDate={{ .CommitDate }}

- id: windows-health-monitor
main: ./tools/health-monitor/main.go
binary: cfusemon
Expand Down Expand Up @@ -86,7 +86,7 @@ builds:
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- -s -w -X github.com/Seagate/cloudfuse/common.GitCommit={{.Commit}} -X github.com/Seagate/cloudfuse/common.CommitDate={{ .CommitDate }}

- id: linux-arm64
goos:
- linux
Expand Down Expand Up @@ -241,7 +241,7 @@ archives:
dst: "./samples/sampleStreamingConfigAzure.yaml"

release:
extra_files:
extra_files:
- glob: ./build/Output/cloudfuse_{{.Version}}_windows_amd64.exe
- glob: ./build/Output/cloudfuse_no_gui_{{.Version}}_windows_amd64.exe

Expand Down Expand Up @@ -278,7 +278,7 @@ nfpms:
# GoReleaser will automatically add the binaries.
contents:
# Basic file that applies to all packagers
- src: './dist/linux-{{ .Arch }}-health-monitor_linux_{{ .Arch }}{{- if eq .Arch "amd64" }}_{{ .Amd64 }}{{- else }}{{ end }}/cfusemon'
- src: './dist/linux-{{ .Arch }}-health-monitor_linux_{{ .Arch }}{{- if eq .Arch "amd64" }}_{{ .Amd64 }}{{ end }}/cfusemon'
dst: /usr/bin/cfusemon
- src: NOTICE
dst: /usr/share/doc/cloudfuse/NOTICE
Expand All @@ -301,7 +301,7 @@ nfpms:
dst: /usr/share/applications/cloudfuse.desktop
- src: "./gui/dist/cloudfuseGUI_Linux/*"
dst: "/opt/cloudfuse"

overrides:
deb:
dependencies:
Expand Down Expand Up @@ -345,7 +345,7 @@ nfpms:
# GoReleaser will automatically add the binaries.
contents:
# Basic file that applies to all packagers
- src: './dist/linux-{{ .Arch }}-health-monitor_linux_{{ .Arch }}{{- if eq .Arch "amd64" }}_{{ .Amd64 }}{{- else }}{{ end }}/cfusemon'
- src: './dist/linux-{{ .Arch }}-health-monitor_linux_{{ .Arch }}{{- if eq .Arch "amd64" }}_{{ .Amd64 }}{{ end }}/cfusemon'
dst: /usr/bin/cfusemon
- src: NOTICE
dst: /usr/share/doc/cloudfuse/NOTICE
Expand All @@ -363,7 +363,7 @@ nfpms:
dst: /usr/share/doc/cloudfuse/examples/sampleStreamingConfigS3.yaml
- src: sampleStreamingConfigAzure.yaml
dst: /usr/share/doc/cloudfuse/examples/sampleStreamingConfigAzure.yaml

overrides:
deb:
dependencies:
Expand Down

0 comments on commit c74e9fc

Please sign in to comment.