From 5a60d0bb888fe30afd4627e4c17e078797c5aea5 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Mon, 18 Nov 2024 11:47:00 +0300 Subject: [PATCH] ci: fix goreleaser update changes (#874) --- .github/workflows/release.yml | 2 +- packaging/pack.rb | 70 +++++++++++++++++------------------ 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 79f799b5..85d921dc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: '~> v2' + version: 'v2.4.6' args: release --clean --verbose env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/packaging/pack.rb b/packaging/pack.rb index d539617d..ef262982 100755 --- a/packaging/pack.rb +++ b/packaging/pack.rb @@ -56,63 +56,63 @@ def put_binaries puts "Putting binaries to packages..." { "#{DIST}/no_self_update_linux_amd64_v1/lefthook" => "npm/lefthook-linux-x64/bin/lefthook", - "#{DIST}/no_self_update_linux_arm64/lefthook" => "npm/lefthook-linux-arm64/bin/lefthook", + "#{DIST}/no_self_update_linux_arm64_v8.0/lefthook" => "npm/lefthook-linux-arm64/bin/lefthook", "#{DIST}/no_self_update_freebsd_amd64_v1/lefthook" => "npm/lefthook-freebsd-x64/bin/lefthook", - "#{DIST}/no_self_update_freebsd_arm64/lefthook" => "npm/lefthook-freebsd-arm64/bin/lefthook", + "#{DIST}/no_self_update_freebsd_arm64_v8.0/lefthook" => "npm/lefthook-freebsd-arm64/bin/lefthook", "#{DIST}/no_self_update_openbsd_amd64_v1/lefthook" => "npm/lefthook-openbsd-x64/bin/lefthook", - "#{DIST}/no_self_update_openbsd_arm64/lefthook" => "npm/lefthook-openbsd-arm64/bin/lefthook", + "#{DIST}/no_self_update_openbsd_arm64_v8.0/lefthook" => "npm/lefthook-openbsd-arm64/bin/lefthook", "#{DIST}/no_self_update_windows_amd64_v1/lefthook.exe" => "npm/lefthook-windows-x64/bin/lefthook.exe", - "#{DIST}/no_self_update_windows_arm64/lefthook.exe" => "npm/lefthook-windows-arm64/bin/lefthook.exe", + "#{DIST}/no_self_update_windows_arm64_v8.0/lefthook.exe" => "npm/lefthook-windows-arm64/bin/lefthook.exe", "#{DIST}/no_self_update_darwin_amd64_v1/lefthook" => "npm/lefthook-darwin-x64/bin/lefthook", - "#{DIST}/no_self_update_darwin_arm64/lefthook" => "npm/lefthook-darwin-arm64/bin/lefthook", + "#{DIST}/no_self_update_darwin_arm64_v8.0/lefthook" => "npm/lefthook-darwin-arm64/bin/lefthook", }.each do |(source, dest)| mkdir_p(File.dirname(dest)) cp(source, dest, verbose: true) end { - "#{DIST}/no_self_update_linux_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-linux-x64/lefthook", - "#{DIST}/no_self_update_linux_arm64/lefthook" => "npm-bundled/bin/lefthook-linux-arm64/lefthook", - "#{DIST}/no_self_update_freebsd_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-freebsd-x64/lefthook", - "#{DIST}/no_self_update_freebsd_arm64/lefthook" => "npm-bundled/bin/lefthook-freebsd-arm64/lefthook", - "#{DIST}/no_self_update_openbsd_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-openbsd-x64/lefthook", - "#{DIST}/no_self_update_openbsd_arm64/lefthook" => "npm-bundled/bin/lefthook-openbsd-arm64/lefthook", - "#{DIST}/no_self_update_windows_amd64_v1/lefthook.exe" => "npm-bundled/bin/lefthook-windows-x64/lefthook.exe", - "#{DIST}/no_self_update_windows_arm64/lefthook.exe" => "npm-bundled/bin/lefthook-windows-arm64/lefthook.exe", - "#{DIST}/no_self_update_darwin_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-darwin-x64/lefthook", - "#{DIST}/no_self_update_darwin_arm64/lefthook" => "npm-bundled/bin/lefthook-darwin-arm64/lefthook", + "#{DIST}/no_self_update_linux_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-linux-x64/lefthook", + "#{DIST}/no_self_update_linux_arm64_v8.0/lefthook" => "npm-bundled/bin/lefthook-linux-arm64/lefthook", + "#{DIST}/no_self_update_freebsd_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-freebsd-x64/lefthook", + "#{DIST}/no_self_update_freebsd_arm64_v8.0/lefthook" => "npm-bundled/bin/lefthook-freebsd-arm64/lefthook", + "#{DIST}/no_self_update_openbsd_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-openbsd-x64/lefthook", + "#{DIST}/no_self_update_openbsd_arm64_v8.0/lefthook" => "npm-bundled/bin/lefthook-openbsd-arm64/lefthook", + "#{DIST}/no_self_update_windows_amd64_v1/lefthook.exe" => "npm-bundled/bin/lefthook-windows-x64/lefthook.exe", + "#{DIST}/no_self_update_windows_arm64_v8.0/lefthook.exe" => "npm-bundled/bin/lefthook-windows-arm64/lefthook.exe", + "#{DIST}/no_self_update_darwin_amd64_v1/lefthook" => "npm-bundled/bin/lefthook-darwin-x64/lefthook", + "#{DIST}/no_self_update_darwin_arm64_v8.0/lefthook" => "npm-bundled/bin/lefthook-darwin-arm64/lefthook", }.each do |(source, dest)| mkdir_p(File.dirname(dest)) cp(source, dest, verbose: true) end { - "#{DIST}/no_self_update_linux_amd64_v1/lefthook" => "rubygems/libexec/lefthook-linux-x64/lefthook", - "#{DIST}/no_self_update_linux_arm64/lefthook" => "rubygems/libexec/lefthook-linux-arm64/lefthook", - "#{DIST}/no_self_update_freebsd_amd64_v1/lefthook" => "rubygems/libexec/lefthook-freebsd-x64/lefthook", - "#{DIST}/no_self_update_freebsd_arm64/lefthook" => "rubygems/libexec/lefthook-freebsd-arm64/lefthook", - "#{DIST}/no_self_update_openbsd_amd64_v1/lefthook" => "rubygems/libexec/lefthook-openbsd-x64/lefthook", - "#{DIST}/no_self_update_openbsd_arm64/lefthook" => "rubygems/libexec/lefthook-openbsd-arm64/lefthook", - "#{DIST}/no_self_update_windows_amd64_v1/lefthook.exe" => "rubygems/libexec/lefthook-windows-x64/lefthook.exe", - "#{DIST}/no_self_update_windows_arm64/lefthook.exe" => "rubygems/libexec/lefthook-windows-arm64/lefthook.exe", - "#{DIST}/no_self_update_darwin_amd64_v1/lefthook" => "rubygems/libexec/lefthook-darwin-x64/lefthook", - "#{DIST}/no_self_update_darwin_arm64/lefthook" => "rubygems/libexec/lefthook-darwin-arm64/lefthook", + "#{DIST}/no_self_update_linux_amd64_v1/lefthook" => "rubygems/libexec/lefthook-linux-x64/lefthook", + "#{DIST}/no_self_update_linux_arm64_v8.0/lefthook" => "rubygems/libexec/lefthook-linux-arm64/lefthook", + "#{DIST}/no_self_update_freebsd_amd64_v1/lefthook" => "rubygems/libexec/lefthook-freebsd-x64/lefthook", + "#{DIST}/no_self_update_freebsd_arm64_v8.0/lefthook" => "rubygems/libexec/lefthook-freebsd-arm64/lefthook", + "#{DIST}/no_self_update_openbsd_amd64_v1/lefthook" => "rubygems/libexec/lefthook-openbsd-x64/lefthook", + "#{DIST}/no_self_update_openbsd_arm64_v8.0/lefthook" => "rubygems/libexec/lefthook-openbsd-arm64/lefthook", + "#{DIST}/no_self_update_windows_amd64_v1/lefthook.exe" => "rubygems/libexec/lefthook-windows-x64/lefthook.exe", + "#{DIST}/no_self_update_windows_arm64_v8.0/lefthook.exe" => "rubygems/libexec/lefthook-windows-arm64/lefthook.exe", + "#{DIST}/no_self_update_darwin_amd64_v1/lefthook" => "rubygems/libexec/lefthook-darwin-x64/lefthook", + "#{DIST}/no_self_update_darwin_arm64_v8.0/lefthook" => "rubygems/libexec/lefthook-darwin-arm64/lefthook", }.each do |(source, dest)| mkdir_p(File.dirname(dest)) cp(source, dest, verbose: true) end { - "#{DIST}/no_self_update_linux_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-linux-x86_64/lefthook", - "#{DIST}/no_self_update_linux_arm64/lefthook" => "pypi/lefthook/bin/lefthook-linux-arm64/lefthook", - "#{DIST}/no_self_update_freebsd_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-freebsd-x86_64/lefthook", - "#{DIST}/no_self_update_freebsd_arm64/lefthook" => "pypi/lefthook/bin/lefthook-freebsd-arm64/lefthook", - "#{DIST}/no_self_update_openbsd_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-openbsd-x86_64/lefthook", - "#{DIST}/no_self_update_openbsd_arm64/lefthook" => "pypi/lefthook/bin/lefthook-openbsd-arm64/lefthook", - "#{DIST}/no_self_update_windows_amd64_v1/lefthook.exe" => "pypi/lefthook/bin/lefthook-windows-x86_64/lefthook.exe", - "#{DIST}/no_self_update_windows_arm64/lefthook.exe" => "pypi/lefthook/bin/lefthook-windows-arm64/lefthook.exe", - "#{DIST}/no_self_update_darwin_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-darwin-x86_64/lefthook", - "#{DIST}/no_self_update_darwin_arm64/lefthook" => "pypi/lefthook/bin/lefthook-darwin-arm64/lefthook", + "#{DIST}/no_self_update_linux_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-linux-x86_64/lefthook", + "#{DIST}/no_self_update_linux_arm64_v8.0/lefthook" => "pypi/lefthook/bin/lefthook-linux-arm64/lefthook", + "#{DIST}/no_self_update_freebsd_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-freebsd-x86_64/lefthook", + "#{DIST}/no_self_update_freebsd_arm64_v8.0/lefthook" => "pypi/lefthook/bin/lefthook-freebsd-arm64/lefthook", + "#{DIST}/no_self_update_openbsd_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-openbsd-x86_64/lefthook", + "#{DIST}/no_self_update_openbsd_arm64_v8.0/lefthook" => "pypi/lefthook/bin/lefthook-openbsd-arm64/lefthook", + "#{DIST}/no_self_update_windows_amd64_v1/lefthook.exe" => "pypi/lefthook/bin/lefthook-windows-x86_64/lefthook.exe", + "#{DIST}/no_self_update_windows_arm64_v8.0/lefthook.exe" => "pypi/lefthook/bin/lefthook-windows-arm64/lefthook.exe", + "#{DIST}/no_self_update_darwin_amd64_v1/lefthook" => "pypi/lefthook/bin/lefthook-darwin-x86_64/lefthook", + "#{DIST}/no_self_update_darwin_arm64_v8.0/lefthook" => "pypi/lefthook/bin/lefthook-darwin-arm64/lefthook", }.each do |(source, dest)| mkdir_p(File.dirname(dest)) cp(source, dest, verbose: true)