Skip to content

Commit

Permalink
CI: add back ci-tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Mar 5, 2023
1 parent c7a4083 commit e6ba183
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Version 2023-03-03
# Version 2023-03-05
name: Java CI
on: [push, pull_request]

Expand Down Expand Up @@ -36,9 +36,6 @@ jobs:
with:
java-version: ${{ matrix.java }}
distribution: temurin
server-id: igniterealtime
server-username: CI_DEPLOY_USERNAME
server-password: CI_DEPLOY_PASSWORD

- name: Cache Maven repository
uses: actions/cache@v3
Expand All @@ -49,14 +46,18 @@ jobs:
${{ runner.os }}-java${{ matrix.java }}-maven-
${{ runner.os }}-
- name: Igniterealtime CI Tooling
run: |
git clone --depth 1 https://github.com/igniterealtime/ci-tooling.git target/ci-tooling
cp target/ci-tooling/maven-settings-for-openfire-plugins.xml $HOME/.m2/settings.xml
- name: Build with Maven
run: mvn -B package

- name: Conditionally Deploy to Igniterealtime Archiva
id: deploy
if: ${{ contains(github.repository, 'igniterealtime/') && ( ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || contains(github.ref, 'refs/tags/') ) && matrix.java == '8' }}
run: |
mvn -B deploy -Dmaven.resolver.transport=wagon
run: mvn -B deploy -Dmaven.resolver.transport=wagon --settings target/ci-tooling/maven-settings-for-openfire-plugins.xml
env:
CI_DEPLOY_USERNAME: ${{ secrets.IGNITE_REALTIME_MAVEN_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.IGNITE_REALTIME_MAVEN_PASSWORD }}
Expand Down

0 comments on commit e6ba183

Please sign in to comment.