aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2023-10-27 20:28:56 -0700
committerPinapelz <yukais@pinapelz.com>2023-10-27 20:28:56 -0700
commit905c62a9b58e9a4e80c3f0fb3b71843bae6413c6 (patch)
tree12548bf6b0a7a2626b3b4bad2d9d8935e97325db
parent6a7911864b2b71eddc61de5591d577ebe48e66b4 (diff)
add workflow to build for Github Packages
-rw-r--r--.github/workflows/publish.yml20
-rw-r--r--pom.xml14
2 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
new file mode 100644
index 0000000..4386107
--- /dev/null
+++ b/.github/workflows/publish.yml
@@ -0,0 +1,20 @@
+name: Publish package to GitHub Packages
+on:
+ release:
+ types: [created]
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ packages: write
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-java@v3
+ with:
+ java-version: '11'
+ distribution: 'temurin'
+ - name: Publish package
+ run: mvn --batch-mode deploy
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/pom.xml b/pom.xml
index 6e4b2dd..e2daf56 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,6 +10,13 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
+ <distributionManagement>
+ <repository>
+ <id>github</id>
+ <name>GitHub Packages</name>
+ <url>https://maven.pkg.github.com/pinapelz/JHolodex</url>
+ </repository>
+ </distributionManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
@@ -37,6 +44,13 @@
<artifactId>gson</artifactId>
<version>2.10.1</version>
</dependency>
+ <!-- https://mvnrepository.com/artifact/org.json/json -->
+ <dependency>
+ <groupId>org.json</groupId>
+ <artifactId>json</artifactId>
+ <version>20230618</version>
+ </dependency>
+
</dependencies>
</project>
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage