Skip to content

Commit

Permalink
prepared 2.1.0-beta3 iteration 2
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkocot committed Apr 23, 2021
1 parent af35ea5 commit 6c4eccb
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 57 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 11
server-id: github
server-username: GITHUB_USER_REF
server-password: GITHUB_TOKEN_REF

- name: Build with Maven
run: mvn -B install --no-transfer-progress --file pom.xml
env:
GITHUB_USER_REF: ${{ secrets.GH_PACKAGE_REPO_USERNAME }}
GITHUB_TOKEN_REF: ${{ secrets.GH_PACKAGE_REPO_PASSWORD }}
21 changes: 21 additions & 0 deletions .github/workflows/publish_to_github-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish packages to GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
server-id: github
server-username: GITHUB_USER_REF
server-password: GITHUB_TOKEN_REF
- name: Publish package
run: mvn --batch-mode deploy -DskipTests
env:
GITHUB_USER_REF: ${{ secrets.GH_PACKAGE_REPO_USERNAME }}
GITHUB_TOKEN_REF: ${{ secrets.GH_PACKAGE_REPO_PASSWORD }}
56 changes: 0 additions & 56 deletions .github/workflows/release-to-maven-central.yml

This file was deleted.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/codecentric/reedelk-module-database</url>
<url>https://maven.pkg.github.com/codecentric/reedelk-module-file</url>
</repository>
</distributionManagement>

Expand Down

0 comments on commit 6c4eccb

Please sign in to comment.