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:
- 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)"

View File

@@ -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)