Skip to content

Commit a2418ab

Browse files
authored
fix: github token to upload artifact (#60)
1 parent adf42ca commit a2418ab

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
with:
5757
distribution: goreleaser
5858
version: latest
59-
args: release --rm-dist
59+
args: release --clean
6060
env:
61-
GITHUB_TOKEN: ${{ secrets.KCL_LANG_BOT_TOKEN }}
62-
RELEASE_VERSION: ${{ github.ref }}
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ release:
4949
draft: false
5050
footer: |
5151
## Docker Images
52-
* `kcllang/kcl-openapi:{{ .Env.RELEASE_VERSION }}`
52+
* `kcllang/kcl-openapi:{{ .Tag }}`
5353
dockers:
5454
- use: buildx
5555
goos: linux
@@ -66,7 +66,6 @@ dockers:
6666
- "--label=org.opencontainers.image.version={{.Version}}"
6767
- "--label=org.opencontainers.image.source={{.GitURL}}"
6868
- "--platform=linux/amd64"
69-
7069
docker_manifests:
7170
- use: docker
7271
name_template: kcllang/{{ .ProjectName }}:{{ .Tag }}

0 commit comments

Comments
 (0)