Skip to content

Commit d370504

Browse files
author
Evan Hu
committed
fix deploy ci
1 parent cd3d68b commit d370504

File tree

2 files changed

+11
-25
lines changed

2 files changed

+11
-25
lines changed
Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,16 @@
1-
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2-
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
3-
4-
name: Maven Package
5-
1+
name: Publish package to GitHub Packages
62
on:
73
release:
84
types: [created]
9-
105
jobs:
11-
build:
12-
6+
publish:
137
runs-on: ubuntu-latest
14-
158
steps:
16-
- uses: actions/checkout@v2
17-
- name: Set up JDK 1.8
18-
uses: actions/setup-java@v1
19-
with:
20-
java-version: 1.8
21-
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
22-
settings-path: ${{ github.workspace }} # location for the settings.xml file
23-
24-
- name: Build with Maven
25-
run: mvn -B package --file pom.xml
26-
27-
- name: Publish to GitHub Packages Apache Maven
28-
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
29-
env:
30-
GITHUB_TOKEN: ${{ secrets.TOKEN }}
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-java@v1
11+
with:
12+
java-version: 1.8
13+
- name: Publish package
14+
run: mvn --batch-mode deploy
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.TOKEN }}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<modelVersion>4.0.0</modelVersion>
77
<groupId>info.xiaomo</groupId>
88
<artifactId>gameCore</artifactId>
9-
<version>2.0.4</version>
9+
<version>2.0.5</version>
1010
<name>gameCore</name>
1111

1212
<properties>

0 commit comments

Comments
 (0)