Skip to content

Commit bd3446c

Browse files
committed
Add deploy workflow
1 parent 16d780e commit bd3446c

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
deploy:
10+
name: Deploy Maven Package
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Set up JDK 17
16+
uses: actions/setup-java@v2
17+
with:
18+
java-version: "17"
19+
distribution: "adopt"
20+
server-id: github
21+
settings-path: ${{ github.workspace }}
22+
- name: Build with Maven
23+
run: mvn clean package
24+
- name: Publish to GitHub Packages Apache Maven
25+
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
26+
env:
27+
GITHUB_TOKEN: ${{ github.token }}

pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>org.codegame</groupId>
8-
<artifactId>codegame-client</artifactId>
8+
<artifactId>client</artifactId>
99
<version>0.1.0</version>
1010

1111
<name>CodeGame Client</name>
@@ -107,4 +107,11 @@
107107
</plugins>
108108
</pluginManagement>
109109
</build>
110+
<distributionManagement>
111+
<repository>
112+
<id>github</id>
113+
<name>CodeGame java-client</name>
114+
<url>https://maven.pkg.github.com/code-game-project/java-client</url>
115+
</repository>
116+
</distributionManagement>
110117
</project>

0 commit comments

Comments
 (0)