Optimize release workflow

This commit is contained in:
Max 2022-04-13 09:27:40 +08:00
parent 61a0673550
commit 3a4af45bcf
2 changed files with 25 additions and 25 deletions

View file

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

View file

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