Update rpc-man-ci.yml #2
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
# ci.yml | |
name: rpcman-server # 随意 你的工作流名称 | |
on: | |
push: # 触发条件 这里是在push时触发 | |
branches: | |
- main # 指定触发分支 | |
jobs: | |
build: | |
runs-on: ubuntu-latest # 运行的虚拟机环境 必须 | |
steps: | |
- uses: actions/checkout@v3 # 使用工具将代码拉到虚拟机 | |
- uses: actions/setup-java@master # 这里是进行打jar包的工具 | |
with: # with指定相关参数 | |
java-version: 17 # java版本 | |
distribution: "adopt" # jdk发行版 | |
cache: maven # 包管理工具 | |
- run: mvn clean package --file pom.xml # 执行打包命令 |