Skip to content

Commit 6c4eccb

Browse files
committed
prepared 2.1.0-beta3 iteration 2
1 parent af35ea5 commit 6c4eccb

File tree

4 files changed

+28
-57
lines changed

4 files changed

+28
-57
lines changed

.github/workflows/maven.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313
uses: actions/setup-java@v1
1414
with:
1515
java-version: 11
16+
server-id: github
17+
server-username: GITHUB_USER_REF
18+
server-password: GITHUB_TOKEN_REF
1619

1720
- name: Build with Maven
1821
run: mvn -B install --no-transfer-progress --file pom.xml
22+
env:
23+
GITHUB_USER_REF: ${{ secrets.GH_PACKAGE_REPO_USERNAME }}
24+
GITHUB_TOKEN_REF: ${{ secrets.GH_PACKAGE_REPO_PASSWORD }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish packages to GitHub Packages
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-java@v2
11+
with:
12+
java-version: '11'
13+
distribution: 'adopt'
14+
server-id: github
15+
server-username: GITHUB_USER_REF
16+
server-password: GITHUB_TOKEN_REF
17+
- name: Publish package
18+
run: mvn --batch-mode deploy -DskipTests
19+
env:
20+
GITHUB_USER_REF: ${{ secrets.GH_PACKAGE_REPO_USERNAME }}
21+
GITHUB_TOKEN_REF: ${{ secrets.GH_PACKAGE_REPO_PASSWORD }}

.github/workflows/release-to-maven-central.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<repository>
4444
<id>github</id>
4545
<name>GitHub Packages</name>
46-
<url>https://maven.pkg.github.com/codecentric/reedelk-module-database</url>
46+
<url>https://maven.pkg.github.com/codecentric/reedelk-module-file</url>
4747
</repository>
4848
</distributionManagement>
4949

0 commit comments

Comments
 (0)