1
mirror of https://github.com/CarmJos/EasyPlugin.git synced 2024-09-19 19:25:45 +00:00

修复依赖

This commit is contained in:
Carm Jos 2022-01-05 05:19:40 +08:00
parent b2b5c41b86
commit eb073ce9dc
4 changed files with 24 additions and 2 deletions

View File

@ -52,8 +52,21 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- uses: actions/checkout@v2
- name: "Set up JDK"
uses: actions/setup-java@v2
with:
cache: maven
java-version: '11'
distribution: 'adopt'
server-id: github
server-username: MAVEN_USERNAME
server-password: MAVEN_TOKEN
- name: "Package"
run: mvn -B package --file pom.xml -Dmaven.javadoc.skip=true
env:
MAVEN_USERNAME: ${{ github.repository_owner }}
MAVEN_TOKEN: ${{secrets.GITHUB_TOKEN}}
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

View File

@ -26,6 +26,9 @@ jobs:
- name: Generate docs
run: mvn clean package -DskipTests
env:
MAVEN_USERNAME: ${{ github.repository_owner }}
MAVEN_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Copy to Location
run: |

View File

@ -26,6 +26,9 @@ jobs:
server-password: MAVEN_TOKEN
- name: "Package"
run: mvn -B package --file pom.xml -Dmaven.javadoc.skip=true
env:
MAVEN_USERNAME: ${{ github.repository_owner }}
MAVEN_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: "Target Stage"
run: mkdir staging && cp */target/*.jar staging
- name: "Upload artifact"

View File

@ -87,6 +87,9 @@
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/CarmJos/EasyPlugin</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>