1
mirror of https://github.com/CarmJos/EasyPlugin.git synced 2024-09-20 03:35:48 +00:00
EasyPlugin/.github/workflows/maven.yml

31 lines
918 B
YAML
Raw Normal View History

2022-01-04 12:38:29 +00:00
# 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://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
2022-01-13 08:32:36 +00:00
name: Project Build & Tests
2022-01-04 12:38:29 +00:00
on:
# 支持手动触发构建
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Set up JDK"
uses: actions/setup-java@v2
with:
2022-01-04 12:49:41 +00:00
cache: maven
2022-01-04 12:38:29 +00:00
java-version: '11'
distribution: 'adopt'
server-id: github
server-username: MAVEN_USERNAME
server-password: MAVEN_TOKEN
2022-01-04 12:38:29 +00:00
- name: "Package"
run: mvn -B package --file pom.xml -Dmaven.javadoc.skip=true
2022-01-04 21:19:40 +00:00
env:
MAVEN_USERNAME: ${{ github.repository_owner }}
MAVEN_TOKEN: ${{secrets.GITHUB_TOKEN}}