Skip to content

update: add Chinese messages #62

update: add Chinese messages

update: add Chinese messages #62

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn clean package -DskipTests
- name: Upload to server
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
source: "target/*.jar,Dockerfile"
target: ${{ secrets.DEPLOY_PATH }}
overwrite: true
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Run deploy script
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
script: |
cd ${{ secrets.DEPLOY_PATH }}
./deploy.sh