From d59c79550280883bf1e033450b06f79efec11640 Mon Sep 17 00:00:00 2001 From: Valentin Maerten Date: Wed, 13 Aug 2025 15:14:57 +0200 Subject: [PATCH] fix: goreleaser with cloudsmith and npm (#2372) --- .github/workflows/release-nightly.yml | 3 ++- .github/workflows/release.yml | 1 + .goreleaser.yml | 15 ++++++++------- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index 91446d11..6dd8b5c2 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -1,4 +1,4 @@ -name: Realease nightly +name: Release nightly on: workflow_dispatch: @@ -27,3 +27,4 @@ jobs: env: GITHUB_TOKEN: ${{secrets.GH_PAT}} GORELEASER_KEY: ${{secrets.GORELEASER_KEY}} + CLOUDSMITH_TOKEN: ${{secrets.CLOUDSMITH_TOKEN}} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2d9751f..9dcffc96 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,6 +43,7 @@ jobs: env: GITHUB_TOKEN: ${{secrets.GH_PAT}} GORELEASER_KEY: ${{secrets.GORELEASER_KEY}} + CLOUDSMITH_TOKEN: ${{secrets.CLOUDSMITH_TOKEN}} - name: Deploy Website shell: bash diff --git a/.goreleaser.yml b/.goreleaser.yml index 2d46ea12..b8e82785 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -68,6 +68,7 @@ nfpms: formats: - deb - rpm + - apk file_name_template: '{{.ProjectName}}_{{.Os}}_{{.Arch}}' contents: - src: completion/bash/task.bash @@ -147,9 +148,9 @@ npms: author: "The Task authors" access: public keywords: - - "task", - - "taskfile", - - "build-tool", + - "task" + - "taskfile" + - "build-tool" - "task-runner" @@ -161,13 +162,13 @@ cloudsmiths: - rpm - apk distributions: - deb: - - "ubuntu/any-version" - - "debian/any-version" +# deb: +# - "ubuntu/any-version" +# - "debian/any-version" rpm: - "el/any-version" - "fedora/any-version" alpine: - "alpine/any-version" - component: main + component: "{{if .IsNightly}}unstable{{else}}main{{end}}" republish: true