diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5590c6ac..f7347086 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,14 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + - name: Setup aliyun OSS + uses: manyuanrong/setup-ossutil@v2.0 + with: + endpoint: "oss-cn-beijing.aliyuncs.com" + access-key-id: ${{ secrets.ALIYUN_ACCESSKEY_ID }} + access-key-secret: ${{ secrets.ALIYUN_ACCESSKEY_SECRET }} - name: Release hrp cli binaries - uses: wangyoucao577/go-release-action@v1.22 + uses: wangyoucao577/go-release-action@v1.23 with: github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} @@ -29,15 +35,14 @@ jobs: binary_name: "hrp" ldflags: "-s -w" extra_files: LICENSE README.md docs/CHANGELOG.md - - name: Setup aliyun OSS - uses: manyuanrong/setup-ossutil@v2.0 - with: - endpoint: "oss-cn-beijing.aliyuncs.com" - access-key-id: ${{ secrets.ALIYUN_ACCESSKEY_ID }} - access-key-secret: ${{ secrets.ALIYUN_ACCESSKEY_SECRET }} - # - name: Upload to aliyun OSS - # run: | - # ossutil cp -rf cli/scripts/install.sh oss://httprunner/ - # ossutil cp -rf hrp-*.tar.gz hrp-*.zip oss://httprunner/ || true - # - name: Test install.sh - # run: bash -c "$(curl -ksSL https://httprunner.oss-cn-beijing.aliyuncs.com/install.sh)" + post_command: | + pwd + export ASSET_PATH="$INPUT_PROJECT_PATH/$BUILD_ARTIFACTS_FOLDER/$RELEASE_ASSET_FILE" + echo "::set-env name=ASSET_PATH::$ASSET_PATH" + - name: Upload artifacts to aliyun OSS + run: | + which ossutil + ossutil cp -rf cli/scripts/install.sh oss://httprunner/ + ossutil cp -rf "$ASSET_PATH" oss://httprunner/ + - name: Test install.sh + run: bash -c "$(curl -ksSL https://httprunner.oss-cn-beijing.aliyuncs.com/install.sh)" diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index f7652391..e73b2729 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,8 +1,9 @@ # Release History -## v0.6.0 (2022-01-25) +## v0.6.0 (2022-01-26) - feat: implement `rendezvous` mechanism for data driven +- feat: upload release artifacts to aliyun oss - change: remove sentry sdk ## v0.5.3 (2022-01-25)