Skip to content

Commit

Permalink
Update pr-commit-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoxh authored Sep 8, 2024
1 parent 3811462 commit 497387d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/pr-commit-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Setup Maven Action
- name: Setup Maven Action
uses: s4u/[email protected]
with:
java-version: 21
#settings-properties: '[{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}]'

- run: echo '<settings> <interactiveMode>false</interactiveMode> <profiles> <profile> <repositories> <repository> <snapshots /> <id>ossrh</id> <name>ossrh-snapshot</name> <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <snapshots /> <id>ossrh</id> <name>ossrh-snapshot</name> <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> </pluginRepository> </pluginRepositories> <id>artifactory</id> </profile> </profiles> <activeProfiles> <activeProfile>artifactory</activeProfile> </activeProfiles> <servers> <server> <id>github</id> <username>${env.GITHUB_ACTOR}</username> <password>${env.GITHUB_TOKEN}</password> </server> </servers> <mirrors/> <proxies/></settings>' > ~/.m2/settings.xml
- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Build with Maven
run: mvn -B package --file pom.xml

0 comments on commit 497387d

Please sign in to comment.