Update srpc.js #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Auto deploy to OSS | |
name: deploy | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: npm install | |
run: npm install | |
- name: npm build | |
run: npm run build | |
- name: Setup Aliyun OSS | |
uses: manyuanrong/setup-ossutil@master | |
with: | |
endpoint: oss-cn-hangzhou.aliyuncs.com | |
access-key-id: ${{ secrets.ALIYUN_ACCESS_KEY_ID }} | |
access-key-secret: ${{ secrets.ALIYUN_ACCESS_KEY_SECRET }} | |
- name: Delete Old assets | |
run: ossutil rm -rf oss://njsc-fe/atool/ | |
- name: Upload files to OSS | |
run: ossutil cp -rf ./dist oss://njsc-fe/atool/ |