Skip to content

Commit

Permalink
No issue: Try deploying Maven artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
reckart committed Dec 20, 2024
1 parent 501588d commit d13cb8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
cache: maven
server-id: ukp-oss
server-id: ukp-oss-snapshots
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

Expand All @@ -51,21 +51,19 @@ jobs:
- name: Build with Maven
if: "!(matrix.os == 'ubuntu-latest' && github.event_name != 'pull_request')"
run: mvn --show-version --batch-mode --no-transfer-progress clean deploy
run: mvn --show-version --batch-mode --no-transfer-progress clean verify

- name: Build with Maven and publish artifacts
if: matrix.os == 'ubuntu-latest' && github.event_name != 'pull_request'
env:
# `MAVEN_USERNAME` and `MAVEN_PASSWORD` are used in `~/.m2/settings.xml` created by `setup-java` action
MAVEN_USERNAME: ${{ secrets.UKP_MAVEN_USER }}
MAVEN_PASSWORD: ${{ secrets.UKP_MAVEN_TOKEN }}
run: mvn --show-version --batch-mode --errors --no-transfer-progress -DdeployAtEnd=true -DskipTests clean deploy
run: mvn --show-version --batch-mode --errors --no-transfer-progress -DdeployAtEnd=false -DskipTests clean deploy

- name: Capture build artifacts
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: inception/inception-app-webapp/target/inception-app-webapp-*-standalone.jar


4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
<id>ukp-oss</id>
<url>https://zoidberg.ukp.informatik.tu-darmstadt.de/artifactory/public-ukp-releases-local</url>
</repository>
<snapshotRepository>
<id>ukp-oss-snapshots</id>
<url>https://zoidberg.ukp.informatik.tu-darmstadt.de/artifactory/public-ukp-snapshots-local</url>
</snapshotRepository>
</distributionManagement>

<properties>
Expand Down

0 comments on commit d13cb8a

Please sign in to comment.