From 700923d17b5e34e7b50a5281a028ed550a8870d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kol=C3=A1rik?= Date: Thu, 17 Sep 2026 16:26:19 +0200 Subject: [PATCH] ci: update release actions and archive configuration --- .github/workflows/release.yml | 22 +++++++++++----------- .goreleaser.yaml | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6fa74e9..988f046 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -149,18 +149,18 @@ jobs: permissions: contents: read steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 with: fetch-depth: 0 ref: ${{ needs.prepare_release.outputs.tag }} - run: git fetch --force --tags - - uses: actions/setup-go@v5 + - uses: actions/setup-go@v7 with: go-version: ">=1.24" cache: true - - uses: goreleaser/goreleaser-action@v6 + - uses: goreleaser/goreleaser-action@v7 with: version: "~> v2" args: release --clean @@ -168,19 +168,19 @@ jobs: GITHUB_TOKEN: ${{ secrets.GHTOKEN_GORELEASER }} CHOCOLATEY_APIKEY: ${{ secrets.CHOCOLATEY_APIKEY }} - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: goreleaser-deb path: | dist/globalping_${{ needs.prepare_release.outputs.version }}_linux_amd64.deb dist/globalping_${{ needs.prepare_release.outputs.version }}_linux_arm64.deb - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: goreleaser-rpm path: | dist/globalping_${{ needs.prepare_release.outputs.version }}_linux_amd64.rpm dist/globalping_${{ needs.prepare_release.outputs.version }}_linux_arm64.rpm - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: goreleaser-windows path: | @@ -201,20 +201,20 @@ jobs: PACKAGECLOUD_MAX_DISTRO_VERSIONS_TO_SUPPORT: ${{ vars.PACKAGECLOUD_MAX_DISTRO_VERSIONS_TO_SUPPORT }} PACKAGECLOUD_MAX_PACKAGE_VERSIONS_TO_KEEP: ${{ vars.PACKAGECLOUD_MAX_PACKAGE_VERSIONS_TO_KEEP }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 with: fetch-depth: 0 ref: ${{ needs.prepare_release.outputs.tag }} - - uses: actions/setup-go@v5 + - uses: actions/setup-go@v7 with: go-version: ">=1.24" cache: true - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v8 with: name: goreleaser-deb - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v8 with: name: goreleaser-rpm @@ -234,7 +234,7 @@ jobs: env: VERSION_NAME: ${{ needs.prepare_release.outputs.version }} steps: - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v8 with: name: goreleaser-windows diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 8f589ba..3eb1138 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -16,7 +16,7 @@ builds: - darwin archives: - - format: tar.gz + - formats: [tar.gz] # this name template makes the OS and Arch compatible with the results of uname. name_template: >- globalping_ @@ -28,7 +28,7 @@ archives: # use zip for windows archives format_overrides: - goos: windows - format: zip + formats: [zip] checksum: name_template: 'checksums.txt' snapshot: