steps: # 检出代码 - uses: actions/checkout@v3 # 设置Java环境 - name: Set up JDK uses: actions/setup-java@v3 with: java-version: '8' # 根据你的项目需求修改Java版本 distribution: 'temurin' cache: 'maven' # Maven 构建打包 - name: Build with Maven run: mvn clean package -DskipTests # 上传构建产物(可选) - name: Upload artifact uses: actions/upload-artifact@v3 with: name: application path: target/*.jar # 发送HTTP GET请求通知 - name: Send HTTP notification run: | curl -X POST \ "https://2758.push.ft07.com/send/sctp2758tbaxw3tz7hyy3zisxzsuixz.send" \ -H "Content-type: application/x-www-form-urlencoded" \ -d "title=GiteaAction 执行完成" -d "desp=GiteaAction 执行内容测试" -d "tags=Gitea|GiteaActions"