Skip to content

Commit

Permalink
Fix for GitHub Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Laica-Lunasys committed Jul 11, 2023
1 parent 19f565e commit 390a114
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
push:
branches:
- master

env:
MVN_REPO_SERVER_ID: "startail-public"

jobs:
maven:
name: deploy-maven
Expand All @@ -18,7 +22,16 @@ jobs:
java-version: "17"
distribution: "adopt"
- name: Build and Deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cat <<EOT > ~/.m2/settings.xml
<settings>
<servers>
<server>
<id>${{ env.MVN_REPO_SERVER_ID }}</id>
<username>${{ secrets.MVN_REPO_USERNAME }}</username>
<password>${{ secrets.MVN_REPO_PASSWORD }}</password>
</server>
</servers>
</settings>
EOT
mvn clean package deploy
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>

<groupId>net.synchthia</groupId>
<artifactId>Nebula</artifactId>
<artifactId>nebula</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

Expand Down Expand Up @@ -45,8 +45,8 @@
</repository>

<repository>
<id>github</id>
<url>https://maven.pkg.github.com/synchthia/nebula-api</url>
<id>startail-public</id>
<url>https://maven.pkg.github.com/synchthia/pkg-startail-public</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
Expand All @@ -55,9 +55,9 @@

<distributionManagement>
<repository>
<id>github</id>
<id>startail-public</id>
<name>GitHub synchthia Apache Maven Packages</name>
<url>https://maven.pkg.github.com/synchthia/nebula</url>
<url>https://maven.pkg.github.com/synchthia/pkg-startail-public</url>
</repository>
</distributionManagement>

Expand Down

0 comments on commit 390a114

Please sign in to comment.