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 b669b12 + 682887a commit c0f85f4
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 59 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.

30 changes: 27 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<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>
<version>2.0.0</version>
<version>2.1.0-beta3</version>
<artifactId>module-ftp</artifactId>

<properties>
Expand All @@ -25,7 +25,31 @@
<assertj.version>3.11.1</assertj.version>
<junit.version>5.5.2</junit.version>
</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-ftp</url>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>commons-net</groupId>
Expand Down

0 comments on commit c0f85f4

Please sign in to comment.