Skip to content

Commit d59c795

Browse files
authored
fix: goreleaser with cloudsmith and npm (#2372)
1 parent 504cb94 commit d59c795

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.github/workflows/release-nightly.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Realease nightly
1+
name: Release nightly
22

33
on:
44
workflow_dispatch:
@@ -27,3 +27,4 @@ jobs:
2727
env:
2828
GITHUB_TOKEN: ${{secrets.GH_PAT}}
2929
GORELEASER_KEY: ${{secrets.GORELEASER_KEY}}
30+
CLOUDSMITH_TOKEN: ${{secrets.CLOUDSMITH_TOKEN}}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
env:
4444
GITHUB_TOKEN: ${{secrets.GH_PAT}}
4545
GORELEASER_KEY: ${{secrets.GORELEASER_KEY}}
46+
CLOUDSMITH_TOKEN: ${{secrets.CLOUDSMITH_TOKEN}}
4647

4748
- name: Deploy Website
4849
shell: bash

.goreleaser.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ nfpms:
6868
formats:
6969
- deb
7070
- rpm
71+
- apk
7172
file_name_template: '{{.ProjectName}}_{{.Os}}_{{.Arch}}'
7273
contents:
7374
- src: completion/bash/task.bash
@@ -147,9 +148,9 @@ npms:
147148
author: "The Task authors"
148149
access: public
149150
keywords:
150-
- "task",
151-
- "taskfile",
152-
- "build-tool",
151+
- "task"
152+
- "taskfile"
153+
- "build-tool"
153154
- "task-runner"
154155

155156

@@ -161,13 +162,13 @@ cloudsmiths:
161162
- rpm
162163
- apk
163164
distributions:
164-
deb:
165-
- "ubuntu/any-version"
166-
- "debian/any-version"
165+
# deb:
166+
# - "ubuntu/any-version"
167+
# - "debian/any-version"
167168
rpm:
168169
- "el/any-version"
169170
- "fedora/any-version"
170171
alpine:
171172
- "alpine/any-version"
172-
component: main
173+
component: "{{if .IsNightly}}unstable{{else}}main{{end}}"
173174
republish: true

0 commit comments

Comments
 (0)