新版本 1.0.0 beta7 #20
Workflow file for this run
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: pr-check | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 获取信息 | |
id: get_info | |
run: echo "repository_name=${GITHUB_REPOSITORY/${{ github.repository_owner }}\//}" >> $GITHUB_OUTPUT | |
- name: 拉取代码 | |
uses: actions/checkout@v3 | |
- name: 安装java8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
cache: maven | |
- name: 构建 | |
run: | | |
mvn -B package --file pom.xml | |
mkdir staging && cp target/*.jar staging | |
- name: 收集构建文件 | |
uses: actions/upload-artifact@v1 | |
with: | |
name: ${{ steps.get_info.outputs.repository_name }}-Pr_check-Build-${{ github.run_number}} | |
path: staging |