Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit fe5017e

Browse files
committed
retry deployment
1 parent 23cde6b commit fe5017e

File tree

3 files changed

+78
-15
lines changed

3 files changed

+78
-15
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,24 @@ jobs:
1010
- name: 📦 Prepate Git Repo
1111
uses: actions/checkout@v2
1212

13+
- name: 🔐 Import GPG key
14+
uses: crazy-max/ghaction-import-gpg@v3
15+
with:
16+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
17+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
18+
1319
- name: ☕ Install OpenJDK
1420
uses: AdoptOpenJDK/install-jdk@v1
1521
with:
1622
version: '11'
1723
architecture: x64
1824

1925
- name: 🚀 Deploy to Maven
20-
uses: samuelmeuli/action-maven-publish@v1
21-
with:
22-
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
23-
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
24-
nexus_username: ${{ secrets.OSSRH_USERNAME }}
25-
nexus_password: ${{ secrets.OSSRH_TOKEN }}
26+
runs: mvn -B deploy
27+
env:
28+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
29+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
30+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
2631

2732
- name: 🚀 Deploy to Releases
2833
uses: AButler/upload-release-assets@v2.0

pom.xml

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,51 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7+
<properties>
8+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
9+
10+
<github.organization>Ktt-Development</github.organization>
11+
12+
<github.repository>simplehttpserver</github.repository>
13+
<github.repository.description>📕 SimpleHttpServer :: Simplified implementation of the sun http server :: Simplified handlers to execute complex operations</github.repository.description>
14+
<github.repository.license>GPL-2</github.repository.license>
15+
<github.repository.head>main</github.repository.head>
16+
17+
<github.username>Katsute</github.username>
18+
</properties>
19+
720
<groupId>com.kttdevelopment</groupId>
8-
<artifactId>simplehttpserver</artifactId>
21+
<artifactId>${github.repository}</artifactId>
922
<version>03.06.05</version>
1023

11-
<url>https://github.com/Ktt-Development/simplehttpserver</url>
24+
<name>${github.repository}</name>
25+
<description>${github.repository.description}</description>
26+
<url>https://github.com/${github.organization}/${github.repository}</url>
27+
28+
<licenses>
29+
<license>
30+
<name>${github.repository.license}</name>
31+
<distribution>repo</distribution>
32+
<url>https://github.com/${github.organization}/${github.repository}/blob/${github.repository.head}/LICENSE</url>
33+
</license>
34+
</licenses>
35+
36+
<developers>
37+
<developer>
38+
<name>${github.username}</name>
39+
<roles>
40+
<role>developer</role>
41+
</roles>
42+
<url>https://github.com/${github.username}</url>
43+
<organization>${github.organization}</organization>
44+
<organizationUrl>https://github.com/${github.organization}</organizationUrl>
45+
</developer>
46+
</developers>
1247

1348
<scm>
14-
<url>https://github.com/Ktt-Development/simplehttpserver.git</url>
15-
<connection>scm:git:git@github.com:Ktt-Development/simplehttpserver.git</connection>
16-
<developerConnection>scm:git:git@github.com:Ktt-Development/simplehttpserver.git</developerConnection>
49+
<url>https://github.com/${github.organization}/${github.repository}.git</url>
50+
<connection>scm:git:git@github.com:${github.organization}/${github.repository}.git</connection>
51+
<developerConnection>scm:git:git@github.com:${github.organization}/${github.repository}.git</developerConnection>
1752
<tag>HEAD</tag>
1853
</scm>
1954

@@ -28,10 +63,6 @@
2863
</repository>
2964
</distributionManagement>
3065

31-
<properties>
32-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33-
</properties>
34-
3566
<build>
3667
<plugins>
3768
<plugin>

settings.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
5+
6+
<servers>
7+
<server>
8+
<id>ossrh</id>
9+
<username>${env.MAVEN_USERNAME}</username>
10+
<password>${env.MAVEN_PASSWORD}</password>
11+
</server>
12+
</servers>
13+
14+
<profiles>
15+
<profile>
16+
<id>ossrh</id>
17+
<activation>
18+
<activeByDefault>true</activeByDefault>
19+
</activation>
20+
<properties>
21+
<gpg.executable>gpg</gpg.executable>
22+
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
23+
</properties>
24+
</profile>
25+
</profiles>
26+
27+
</settings>

0 commit comments

Comments
 (0)