Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): fix web client deploy job #1705

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading