Skip to content

Commit b7c42ec

Browse files
committed
Add release action
1 parent 13c5088 commit b7c42ec

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build
2+
on:
3+
release:
4+
types:
5+
- created
6+
7+
env:
8+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/[email protected]
16+
- name: Set up JDK 1.8
17+
uses: actions/[email protected]
18+
with:
19+
java-version: 1.8
20+
server-id: henkelmax.public
21+
server-username: MAVEN_USERNAME
22+
server-password: MAVEN_PASSWORD
23+
- name: Publish to maxhenkel.de
24+
run: mvn -B deploy
25+
env:
26+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
27+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>de.maxhenkel.opus4j</groupId>
88
<artifactId>opus4j</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>1.0.0</version>
1010

1111
<name>Opus Wrapper for Java</name>
1212
<url>https://maxhenkel.de</url>

0 commit comments

Comments
 (0)