Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit 92f7430

Browse files
committed
update
2 parents a202078 + 320c864 commit 92f7430

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/release.yml

+8-11
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ jobs:
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v2
22-
- name: Setup aliyun OSS
23-
uses: manyuanrong/[email protected]
24-
with:
25-
endpoint: "oss-cn-beijing.aliyuncs.com"
26-
access-key-id: ${{ secrets.ALIYUN_ACCESSKEY_ID }}
27-
access-key-secret: ${{ secrets.ALIYUN_ACCESSKEY_SECRET }}
2822
- name: Release hrp cli binaries
2923
uses: wangyoucao577/[email protected]
3024
with:
@@ -36,13 +30,16 @@ jobs:
3630
ldflags: "-s -w"
3731
extra_files: LICENSE README.md docs/CHANGELOG.md
3832
post_command: |
39-
pwd
40-
export ASSET_PATH="$INPUT_PROJECT_PATH/$BUILD_ARTIFACTS_FOLDER/$RELEASE_ASSET_FILE"
41-
echo "::set-env name=ASSET_PATH::$ASSET_PATH"
33+
echo "ASSET_PATH=$INPUT_PROJECT_PATH/$BUILD_ARTIFACTS_FOLDER/$RELEASE_ASSET_FILE" >> $GITHUB_ENV
34+
- name: Setup aliyun OSS
35+
uses: manyuanrong/[email protected]
36+
with:
37+
endpoint: "oss-cn-beijing.aliyuncs.com"
38+
access-key-id: ${{ secrets.ALIYUN_ACCESSKEY_ID }}
39+
access-key-secret: ${{ secrets.ALIYUN_ACCESSKEY_SECRET }}
4240
- name: Upload artifacts to aliyun OSS
4341
run: |
44-
which ossutil
4542
ossutil cp -rf cli/scripts/install.sh oss://httprunner/
46-
ossutil cp -rf "$ASSET_PATH" oss://httprunner/
43+
ossutil cp -rf ${{ env.ASSET_PATH }} oss://httprunner/
4744
- name: Test install.sh
4845
run: bash -c "$(curl -ksSL https://httprunner.oss-cn-beijing.aliyuncs.com/install.sh)"

0 commit comments

Comments
 (0)