Skip to content

Commit

Permalink
user github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Cobas91 committed Mar 28, 2024
1 parent 97468a9 commit f2de4b7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 60 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/deploy-maven-central.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/deploy-package.yml
Original file line number Diff line number Diff line change
@@ -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@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.PACKAGE_DEPLOY_TOKEN }}
45 changes: 7 additions & 38 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<description>Java Library to fetch Data from the official RiotApi</description>
<url>https://github.com/Cobas91/RiotAPI</url>
<groupId>io.github.cobas91</groupId>
<artifactId>RiotApi</artifactId>
<artifactId>riotapi</artifactId>
<version>1.0.0</version>
<licenses>
<license>
Expand All @@ -18,31 +18,16 @@
<developers>
<developer>
<name>Stephan Gärtner</name>
<email>[email protected]</email>
<email>[email protected]</email>
<organization>Cobas-Coding</organization>
<organizationUrl>https://cobas-coding.com</organizationUrl>
</developer>
</developers>
<scm>
<url>https://github.com/Cobas91/RiotAPI/tree/master</url>
</scm>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>
<repository>
<id>stephangaertner72</id>
<url>https://pkgs.dev.azure.com/Cobas-Coding/_packaging/stephangaertner72/maven/v1</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
Expand Down Expand Up @@ -71,43 +56,27 @@
</dependencies>
<distributionManagement>
<repository>
<id>ossrh</id>
<name>Central Repository OSSRH</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/Cobas91/RiotAPI</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<version>3.5.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>


</plugins>
</build>

</project>

0 comments on commit f2de4b7

Please sign in to comment.