Skip to content

Commit

Permalink
Merge pull request #2 from codecentric/codecentric-refactoring
Browse files Browse the repository at this point in the history
prepared release 2.1.0-beta3
  • Loading branch information
danielkocot authored Apr 23, 2021
2 parents eaecd8f + e335576 commit 85459d9
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 58 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.

28 changes: 26 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>de.codecentric.reedelk</groupId>
<artifactId>module-parent</artifactId>
<version>2.0.0</version>
<version>2.1.0-beta3</version>
</parent>

<packaging>bundle</packaging>
Expand All @@ -23,7 +23,31 @@
<mockito.version>2.23.0</mockito.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<pluginRepositories>
<pluginRepository>
<id>github</id>
<name>Reedelk Runtime Packages</name>
<url>https://maven.pkg.github.com/codecentric/reedelk-runtime</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>github</id>
<name>Reedelk Runtime Packages</name>
<url>https://maven.pkg.github.com/codecentric/reedelk-runtime</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/codecentric/reedelk-module-scheduler</url>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>org.quartz-scheduler</groupId>
Expand Down

0 comments on commit 85459d9

Please sign in to comment.