Optimize release workflow
This commit is contained in:
parent
61a0673550
commit
3a4af45bcf
2 changed files with 25 additions and 25 deletions
28
.github/workflows/release-linux.yml
vendored
28
.github/workflows/release-linux.yml
vendored
|
|
@ -108,19 +108,19 @@ jobs:
|
|||
run: |
|
||||
coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
|
||||
|
||||
- name: Push To Silicon Valley
|
||||
run: |
|
||||
for file in ./dist/release/*; do coscmd upload $file /archives/; done;
|
||||
# - name: Push To Silicon Valley
|
||||
# run: |
|
||||
# for file in ./dist/release/*; do coscmd upload $file /archives/; done;
|
||||
|
||||
- name: Configure COS For Beijing
|
||||
env:
|
||||
SECRET_ID: ${{ secrets.COS_ID }}
|
||||
SECRET_KEY: ${{ secrets.COS_KEY }}
|
||||
BUCKET: release-bj-1252011659
|
||||
REGION: ap-beijing
|
||||
run: |
|
||||
coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
|
||||
# - name: Configure COS For Beijing
|
||||
# env:
|
||||
# SECRET_ID: ${{ secrets.COS_ID }}
|
||||
# SECRET_KEY: ${{ secrets.COS_KEY }}
|
||||
# BUCKET: release-bj-1252011659
|
||||
# REGION: ap-beijing
|
||||
# run: |
|
||||
# coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
|
||||
|
||||
- name: Push To Beijing
|
||||
run: |
|
||||
for file in ./dist/release/*; do coscmd upload $file /archives/; done;
|
||||
# - name: Push To Beijing
|
||||
# run: |
|
||||
# for file in ./dist/release/*; do coscmd upload $file /archives/; done;
|
||||
|
|
|
|||
22
.github/workflows/release-macos.yml
vendored
22
.github/workflows/release-macos.yml
vendored
|
|
@ -104,15 +104,15 @@ jobs:
|
|||
run: |
|
||||
for file in ./dist/release/*; do coscmd upload $file /archives/; done;
|
||||
|
||||
- name: Configure COS For Beijing
|
||||
env:
|
||||
SECRET_ID: ${{ secrets.COS_ID }}
|
||||
SECRET_KEY: ${{ secrets.COS_KEY }}
|
||||
BUCKET: release-bj-1252011659
|
||||
REGION: ap-beijing
|
||||
run: |
|
||||
coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
|
||||
# - name: Configure COS For Beijing
|
||||
# env:
|
||||
# SECRET_ID: ${{ secrets.COS_ID }}
|
||||
# SECRET_KEY: ${{ secrets.COS_KEY }}
|
||||
# BUCKET: release-bj-1252011659
|
||||
# REGION: ap-beijing
|
||||
# run: |
|
||||
# coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
|
||||
|
||||
- name: Push To Beijing
|
||||
run: |
|
||||
for file in ./dist/release/*; do coscmd upload $file /archives/; done;
|
||||
# - name: Push To Beijing
|
||||
# run: |
|
||||
# for file in ./dist/release/*; do coscmd upload $file /archives/; done;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue