feat: upload artifacts to aliyun oss

This commit is contained in:
debugtalk
2022-01-26 14:23:21 +08:00
parent 32f60bcc30
commit d2e191003f
2 changed files with 20 additions and 14 deletions

View File

@@ -19,8 +19,14 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 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 - name: Release hrp cli binaries
uses: wangyoucao577/go-release-action@v1.22 uses: wangyoucao577/go-release-action@v1.23
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }} goos: ${{ matrix.goos }}
@@ -29,15 +35,14 @@ jobs:
binary_name: "hrp" binary_name: "hrp"
ldflags: "-s -w" ldflags: "-s -w"
extra_files: LICENSE README.md docs/CHANGELOG.md extra_files: LICENSE README.md docs/CHANGELOG.md
- name: Setup aliyun OSS post_command: |
uses: manyuanrong/setup-ossutil@v2.0 pwd
with: export ASSET_PATH="$INPUT_PROJECT_PATH/$BUILD_ARTIFACTS_FOLDER/$RELEASE_ASSET_FILE"
endpoint: "oss-cn-beijing.aliyuncs.com" echo "::set-env name=ASSET_PATH::$ASSET_PATH"
access-key-id: ${{ secrets.ALIYUN_ACCESSKEY_ID }} - name: Upload artifacts to aliyun OSS
access-key-secret: ${{ secrets.ALIYUN_ACCESSKEY_SECRET }} run: |
# - name: Upload to aliyun OSS which ossutil
# run: | ossutil cp -rf cli/scripts/install.sh oss://httprunner/
# ossutil cp -rf cli/scripts/install.sh oss://httprunner/ ossutil cp -rf "$ASSET_PATH" oss://httprunner/
# ossutil cp -rf hrp-*.tar.gz hrp-*.zip oss://httprunner/ || true - name: Test install.sh
# - name: Test install.sh run: bash -c "$(curl -ksSL https://httprunner.oss-cn-beijing.aliyuncs.com/install.sh)"
# run: bash -c "$(curl -ksSL https://httprunner.oss-cn-beijing.aliyuncs.com/install.sh)"

View File

@@ -1,8 +1,9 @@
# Release History # Release History
## v0.6.0 (2022-01-25) ## v0.6.0 (2022-01-26)
- feat: implement `rendezvous` mechanism for data driven - feat: implement `rendezvous` mechanism for data driven
- feat: upload release artifacts to aliyun oss
- change: remove sentry sdk - change: remove sentry sdk
## v0.5.3 (2022-01-25) ## v0.5.3 (2022-01-25)