diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml
index bc793ff..25c3780 100644
--- a/.github/workflows/compile.yml
+++ b/.github/workflows/compile.yml
@@ -19,5 +19,11 @@ jobs:
java-version: '17'
distribution: 'adopt'
architecture: x64
+ server-id: github
+ server-username: GITHUB_USER_REF
+ server-password: GITHUB_TOKEN_REF
- name: Compile
- run: "mvn --batch-mode --update-snapshots clean package"
+ run: "mvn -B -Pgithub --update-snapshots clean package --file pom.xml"
+ env:
+ GITHUB_USER_REF: ${{ secrets.GH_USERNAME }}
+ GITHUB_TOKEN_REF: ${{ secrets.GH_PAT }}
diff --git a/README.md b/README.md
index 4cc20e1..6445a41 100644
--- a/README.md
+++ b/README.md
@@ -48,6 +48,8 @@ or blocks without collision.
This plugin is based on the PluginCommon API. Updates to PluginCommon will
provide verioned and shaded assets associated with this plugin.
+Reference GH Actions: https://www.schakko.de/2020/12/19/using-github-workflow-with-maven-dependencies-from-a-private-github-package-registry/
+
1. Update POM XML Plugins and Dependencies.
2. Update POM XML Version.
3. Build Plugin
diff --git a/pom.xml b/pom.xml
index 29de8e6..c984462 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.github.xcykrix
DynamicLights
- 1.0.6-SNAPSHOT
+ 1.0.7
jar
DynamicLights
@@ -54,6 +54,21 @@
+
+
+ github
+
+
+ github
+ GitHub PluginCommon
+ https://maven.pkg.github.com/xcykrix/plugincommon
+ true
+ true
+
+
+
+
+
spigotmc-repo