fix 修复当带时间查询活动列表(筛选)的接口时,按照的是id排序而不是活动开始时间排序的问题。格式化代码。 #212
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: ci | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'maven' | |
- name: Maven build | |
run: ./mvnw -Dmaven.test.skip=true clean package | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: app | |
path: | | |
target/*.jar | |
deploy: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: app | |
- name: Rename jar | |
run: mv -v *.jar app.jar | |
- name: Deploy | |
uses: easingthemes/ssh-deploy@main | |
with: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | |
REMOTE_USER: evento | |
SOURCE: app.jar | |
TARGET: / |