Skip to content

对配置文件进行支持 #14

对配置文件进行支持

对配置文件进行支持 #14

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: pr-check
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 获取信息
id: get_info
run: echo "repository_name=`basename ${{ github.repository }}`" >> $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
pwd
ls -la
- name: 收集构建文件
uses: actions/upload-artifact@v1
with:
name: ${{ steps.get_info.outputs.repository_name }}
path: staging