Skip to content

Commit

Permalink
chore(web): updated github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Asuka authored and ysfscream committed Jun 19, 2024
1 parent 59326ce commit 48d214f
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/deploy_web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@ jobs:
- name: build
run: |
cd web
yarn && yarn build
yarn && yarn build:online
- 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
# 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: 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
# 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

0 comments on commit 48d214f

Please sign in to comment.