diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 983e7588c..b0e8129e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,10 @@ on: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BUCKET: ${{ secrets.CLI_OSS_BUCKET }} + ENDPOINT: ${{ secrets.CLI_OSS_ENDPOINT }} + ACCESS_KEY: ${{ secrets.CLI_OSS_ACCESS_KEY }} + ACCESS_KEY_SECRET: ${{ secrets.CLI_OSS_ACCESS_KEY_SECRET }} jobs: build: @@ -104,6 +108,18 @@ jobs: name: sha256sums path: ./_bin/sha256-${{ steps.get_matrix.outputs.OS }}-${{ steps.get_matrix.outputs.ARCH }}.txt retention-days: 1 + - name: Install ossutil + run: wget http://gosspublic.alicdn.com/ossutil/1.7.0/ossutil64 && chmod +x ossutil64 && mv ossutil64 ossutil + - name: Configure Alibaba Cloud OSSUTIL + run: ./ossutil --config-file .ossutilconfig config -i ${ACCESS_KEY} -k ${ACCESS_KEY_SECRET} -e ${ENDPOINT} -c .ossutilconfig + - name: sync local to cloud + run: ./ossutil --config-file .ossutilconfig sync ./_bin/vela oss://$BUCKET/binary/vela/${{ env.VELA_VERSION }} + - name: sync the latest version file + run: | + touch ${{ env.VELA_VERSION }} > ./latest_version + ./ossutil --config-file .ossutilconfig ./latest_version oss://$BUCKET/binary/vela/latest_version + + upload-plugin-homebrew: needs: build diff --git a/references/cli/traits.go b/references/cli/traits.go index 97c5c521a..1d68e7f7d 100644 --- a/references/cli/traits.go +++ b/references/cli/traits.go @@ -237,7 +237,7 @@ func PrintInstalledTraitDef(c common2.Args, io cmdutil.IOStreams, filter filterF } capa, err := ParseCapability(dm, data) if err != nil { - io.Errorf("error parsing capability: %s\n", td.Name) + io.Errorf("error parsing capability: %s (message: %s)\n", td.Name, err.Error()) continue } if filter != nil && !filter(capa) {