From a2418abc729adb493ae86550b70a25317fe84202 Mon Sep 17 00:00:00 2001 From: amyxia Date: Fri, 14 Jul 2023 15:02:42 +0800 Subject: [PATCH] fix: github token to upload artifact (#60) --- .github/workflows/release.yml | 5 ++--- .goreleaser.yml | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 75384f9..ab1e826 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,7 +56,6 @@ jobs: with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: - GITHUB_TOKEN: ${{ secrets.KCL_LANG_BOT_TOKEN }} - RELEASE_VERSION: ${{ github.ref }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index c9811fb..dc3b5a0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -49,7 +49,7 @@ release: draft: false footer: | ## Docker Images - * `kcllang/kcl-openapi:{{ .Env.RELEASE_VERSION }}` + * `kcllang/kcl-openapi:{{ .Tag }}` dockers: - use: buildx goos: linux @@ -66,7 +66,6 @@ dockers: - "--label=org.opencontainers.image.version={{.Version}}" - "--label=org.opencontainers.image.source={{.GitURL}}" - "--platform=linux/amd64" - docker_manifests: - use: docker name_template: kcllang/{{ .ProjectName }}:{{ .Tag }}