GiteaActionTest/.gitea/workflows/build-deploy.yaml
hxuanyu 5b25a2db6c
Some checks failed
Build SpringBoot and Notify / build (push) Failing after 3s
action测试
2024-11-04 11:04:29 +08:00

38 lines
919 B
YAML

name: Build SpringBoot and Notify
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: common-devops
steps:
# 设置Java环境
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: 'maven'
# 检出代码
- uses: actions/checkout@v3
# Maven 构建打包
- name: Build with Maven
run: mvn clean package -DskipTests
# 发送POST请求 - JSON数据
- name: Send POST 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"