diff --git a/.github/workflows/release_dongtai.yml b/.github/workflows/release_dongtai.yml index f1a25f0d3..300c12d5e 100644 --- a/.github/workflows/release_dongtai.yml +++ b/.github/workflows/release_dongtai.yml @@ -58,6 +58,10 @@ jobs: # AccessKeySceret access-key-secret: ${{ secrets.ALIYUN_OSS_KEY_SECRET }} - run: | + echo "${{ github.event.repository.name }},version,${{ steps.release.outputs.version }}" >> version.txt && \ + echo "${{ github.event.repository.name }},commit_hash,${GITHUB_SHA}" >> version.txt && \ + cat version.txt + ossutil cp -rf version.txt oss://huoqi-public/iast/release-version/${{ github.event.repository.name }}/${{ steps.release.outputs.version }}/version.txt ossutil cp oss://dongtai/agent/java/${{ steps.release.outputs.VERSION }}/ ./ --include "*.jar" -r [ ! -f ./dongtai-agent.jar ] && echo "$FILE does not exist." [ ! -f ./dongtai-agent.jar ] && ossutil cp oss://dongtai/agent/java/latest/ ./ --include "*.jar" -r