Skip to content

Commit

Permalink
chore(ci): fix web client deploy job
Browse files Browse the repository at this point in the history
Signed-off-by: Swilder-M <i@codming.com>
  • Loading branch information
Swilder-M authored and ysfscream committed Jun 25, 2024
1 parent b0a7f7c commit 0a4edf1
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/deploy_web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ jobs:
cd web
yarn && yarn build:online
# TODO: upload dist to oss
# - name: upload dist
# if: github.event_name == 'release' && !github.event.release.prerelease
# run: |
# cd web
# wget https://gosspublic.alicdn.com/ossutil/1.7.8/ossutil64
# chmod 755 ./ossutil64
# ./ossutil64 config -e https://oss-accelerate.aliyuncs.com -i ${{ secrets.ALI_OSS_ACCESSKEY_ID }} -k ${{ secrets.ALI_OSS_ACCESSKEY_SECRET }} -L CH
# ./ossutil64 cp -r dist/ oss://mqtt-client-emqx-com/ -u
- name: upload dist
if: github.event_name == 'release' && !github.event.release.prerelease
run: |
cd web
wget https://gosspublic.alicdn.com/ossutil/1.7.8/ossutil64
chmod 755 ./ossutil64
./ossutil64 config -e https://oss-accelerate.aliyuncs.com -i ${{ secrets.ALI_OSS_ACCESSKEY_ID }} -k ${{ secrets.ALI_OSS_ACCESSKEY_SECRET }} -L CH
./ossutil64 cp -r dist/ oss://mqttx-web-client/ -u
# - name: refresh cdn cache
# if: github.event_name == 'release' && !github.event.release.prerelease
# uses: Swilder-M/refresh-ali-cdn@v1
# with:
# access_key_id: ${{ secrets.ALI_OSS_ACCESSKEY_ID }}
# access_key_secret: ${{ secrets.ALI_OSS_ACCESSKEY_SECRET }}
# file_paths: http://mqtt-client.emqx.com/
- name: refresh cdn cache
if: github.event_name == 'release' && !github.event.release.prerelease
run: |
pip3 install tccli
tccli configure set secretId ${{ secrets.TENCENT_COS_ID }}
tccli configure set secretKey ${{ secrets.TENCENT_COS_KEY }}
tccli configure set region ap-hongkong
tccli cdn PurgePathCache --Paths '["https://mqttx.app/"]' --FlushType delete
publish_docker:
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit 0a4edf1

Please sign in to comment.