Merge pull request #406 from luxun1910/master #513
This file contains hidden or 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: CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build project | |
run: npm install && npm run build | |
- name: Deploy to ECS | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.ECS_HOST }} | |
username: ${{ secrets.ECS_USERNAME }} | |
password: ${{ secrets.ECS_PASSWORD }} | |
source: './dist/*' | |
target: '/var/www/mybatis-plus-doc/' | |
# rm: true |