This repository was archived by the owner on Mar 28, 2022. It is now read-only.
File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change 19
19
steps :
20
20
- name : Checkout code
21
21
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 }}
28
22
- name : Release hrp cli binaries
29
23
uses :
wangyoucao577/[email protected]
30
24
with :
@@ -36,13 +30,16 @@ jobs:
36
30
ldflags : " -s -w"
37
31
extra_files : LICENSE README.md docs/CHANGELOG.md
38
32
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 }}
42
40
- name : Upload artifacts to aliyun OSS
43
41
run : |
44
- which ossutil
45
42
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/
47
44
- name : Test install.sh
48
45
run : bash -c "$(curl -ksSL https://httprunner.oss-cn-beijing.aliyuncs.com/install.sh)"
You can’t perform that action at this time.
0 commit comments