修复数据绑定错误 #14
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: Node - Stage deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_and_deploy: | |
name: 🎉 Build and Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🚚 Get latest code | |
uses: actions/checkout@v4 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
- name: 🔨 Build Project | |
run: | | |
npm i | |
npm run build-nots | |
- name: 📂 Deploy to aliyun oss | |
uses: manyuanrong/setup-ossutil@master | |
with: | |
endpoint: oss-cn-beijing.aliyuncs.com | |
access-key-id: ${{ secrets.OSS_KEY_ID }} | |
access-key-secret: ${{ secrets.OSS_KEY_SECRET }} | |
- name: Deploy To OSS | |
run: ossutil cp dist oss://karin-manage/ -rf |