Skip to content

update By Robot2024-11-26 18:34:38 #1751

update By Robot2024-11-26 18:34:38

update By Robot2024-11-26 18:34:38 #1751

Workflow file for this run

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 -dd && mkdir deploy-dist && cp -R dist/* deploy-dist/
- run: npm i @serverless-devs/s -g --registry=https://registry.npmmirror.com
- run: s config add --AccountID ${{secrets.ACCOUNT_ID}} --AccessKeyID ${{secrets.ACCESS_KEYID}} --AccessKeySecret ${{secrets.ACCESS_KEYSECRET}} -a higress -f
- name: Deploy
run: s deploy --use-local -y
- name: Update Cache-Control
uses: doggycool/ossutil-github-action@master
with:
ossArgs: 'set-meta oss://higress-website-cn-hongkong/ Cache-Control:public,max-age=3600 -rf'
accessKey: ${{ secrets.ACCESS_KEYID }}
accessSecret: ${{ secrets.ACCESS_KEYSECRET }}
endpoint: oss-cn-hongkong.aliyuncs.com