Skip to content

Commit

Permalink
chore(ci): modify web deploy
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 May 16, 2024
1 parent 84cb25a commit b3bcfcd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/deploy_web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,16 @@ jobs:
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://emqx-io-docs/ -u
./ossutil64 cp -r dist/ oss://mqtt-client-emqx-com/ -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/

publish_docker:
if: github.event_name != 'pull_request'
Expand Down
4 changes: 2 additions & 2 deletions web/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ VUE_APP_PAGE_DESCRIPTION=Online MQTT 5.0 client on the web, using MQTT over WebS

VUE_APP_DEFAULT_HOST=broker.emqx.io

BASE_URL=/online-mqtt-client/
VUE_APP_OUTPUT_DIR=dist/online-mqtt-client
BASE_URL=/
VUE_APP_OUTPUT_DIR=dist

0 comments on commit b3bcfcd

Please sign in to comment.