sync baidu ai-proxy and ai-token-ratelimit docs (#358) #1791
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
name: higress.io deploy on oss | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: ~ | |
#This schedule only takes effect in the default branch | |
jobs: | |
Build-Deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 18.19.x ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build | |
run: | | |
npm install && npm run build | |
- name: Install Aliyun CLI | |
run: | | |
curl -O https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz | |
tar -xzf aliyun-cli-linux-latest-amd64.tgz | |
chmod +x aliyun | |
./aliyun version | |
- name: Sync to OSS | |
run: ./aliyun oss cp ./dist oss://higress-website-cn-hongkong/ --meta Cache-Control:"max-age=3600" -r -f -e oss-cn-hongkong.aliyuncs.com --access-key-id ${{ secrets.ACCESS_KEYID }} --access-key-secret ${{ secrets.ACCESS_KEYSECRET }} --region cn-hongkong |