Skip to content

Commit

Permalink
Update pipeline configuration.
Browse files Browse the repository at this point in the history
Signed-off-by: Łukasz Dywicki <luke@code-house.org>
  • Loading branch information
splatch committed Apr 8, 2024
1 parent dd7e2ee commit a82596f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
distribution: 'temurin'
java-version: '21'
cache: gradle
server-id: 'https://oss.sonatype.org'
server-username: CI_DEPLOY_USERNAME
server-password: CI_DEPLOY_PASSWORD
###

- uses: kiancross/checkstyle-annotations-action@v1

Expand All @@ -34,6 +38,12 @@ jobs:
- name: Validate EdgeApp.bndrun
run: git diff --exit-code io.openems.edge.application/EdgeApp.bndrun

- name: Deploy Edge+Backend assets
if: github.event_name == 'push' && github.ref_name == 'develop'
run: ./gradlew buildEdge buildBackend -DmavenPublishRepository=RemoteMavenRepository
env:
DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
#
# Generate Code-coverage-report
#
Expand All @@ -47,6 +57,9 @@ jobs:
jacoco-csv-file: 'io.openems.*/generated/reports/jacoco/**/*.csv'
generate-coverage-badge: false


-DmavenPublishRepository=RemoteMavenRepository -Drelease=true

- name: Create JaCoCo Badge
env:
PR_NUMBER: ${{ github.event.number }}
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
distribution: 'temurin'
java-version: '21'
cache: gradle
server-id: 'https://oss.sonatype.org'
server-username: CI_RELEASE_USERNAME
server-password: CI_RELEASE_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}

- uses: kiancross/checkstyle-annotations-action@v1

Expand All @@ -32,8 +36,10 @@ jobs:
- name: Validate EdgeApp.bndrun
run: git diff --exit-code io.openems.edge.application/EdgeApp.bndrun

- name: Prepare Edge+Backend assets
run: ./gradlew buildEdge buildBackend
- name: Prepare and deploy Edge+Backend assets
run: ./gradlew buildEdge buildBackend -DmavenPublishRepository=RemoteMavenRepository -Drelease=true
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

- name: Save build-artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit a82596f

Please sign in to comment.