Skip to content

Commit d69dcb7

Browse files
committed
added workflow
1 parent 57c7c8f commit d69dcb7

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish package to GitHub Packages
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
packages: write
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Set up JDK 11
18+
uses: actions/setup-java@v3
19+
with:
20+
java-version: '11'
21+
distribution: 'temurin'
22+
cache: maven
23+
24+
- name: Build with Maven
25+
run: mvn -B package --file pom.xml
26+
27+
- name: Publish package
28+
run: mvn --batch-mode deploy
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Whitespace-only changes.

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
</scm>
3838

3939
<properties>
40+
<revision>${project.version}</revision>
4041
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4142
<maven.compiler.source>11</maven.compiler.source>
4243
<maven.compiler.target>11</maven.compiler.target>

0 commit comments

Comments
 (0)