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: |
|
run: |
|
||||||
coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
|
coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
|
||||||
|
|
||||||
- name: Push To Silicon Valley
|
# - name: Push To Silicon Valley
|
||||||
run: |
|
# run: |
|
||||||
for file in ./dist/release/*; do coscmd upload $file /archives/; done;
|
# for file in ./dist/release/*; do coscmd upload $file /archives/; done;
|
||||||
|
|
||||||
- name: Configure COS For Beijing
|
# - name: Configure COS For Beijing
|
||||||
env:
|
# env:
|
||||||
SECRET_ID: ${{ secrets.COS_ID }}
|
# SECRET_ID: ${{ secrets.COS_ID }}
|
||||||
SECRET_KEY: ${{ secrets.COS_KEY }}
|
# SECRET_KEY: ${{ secrets.COS_KEY }}
|
||||||
BUCKET: release-bj-1252011659
|
# BUCKET: release-bj-1252011659
|
||||||
REGION: ap-beijing
|
# REGION: ap-beijing
|
||||||
run: |
|
# run: |
|
||||||
coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
|
# coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
|
||||||
|
|
||||||
- name: Push To Beijing
|
# - name: Push To Beijing
|
||||||
run: |
|
# run: |
|
||||||
for file in ./dist/release/*; do coscmd upload $file /archives/; done;
|
# 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: |
|
run: |
|
||||||
for file in ./dist/release/*; do coscmd upload $file /archives/; done;
|
for file in ./dist/release/*; do coscmd upload $file /archives/; done;
|
||||||
|
|
||||||
- name: Configure COS For Beijing
|
# - name: Configure COS For Beijing
|
||||||
env:
|
# env:
|
||||||
SECRET_ID: ${{ secrets.COS_ID }}
|
# SECRET_ID: ${{ secrets.COS_ID }}
|
||||||
SECRET_KEY: ${{ secrets.COS_KEY }}
|
# SECRET_KEY: ${{ secrets.COS_KEY }}
|
||||||
BUCKET: release-bj-1252011659
|
# BUCKET: release-bj-1252011659
|
||||||
REGION: ap-beijing
|
# REGION: ap-beijing
|
||||||
run: |
|
# run: |
|
||||||
coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
|
# coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
|
||||||
|
|
||||||
- name: Push To Beijing
|
# - name: Push To Beijing
|
||||||
run: |
|
# run: |
|
||||||
for file in ./dist/release/*; do coscmd upload $file /archives/; done;
|
# for file in ./dist/release/*; do coscmd upload $file /archives/; done;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue