File tree Expand file tree Collapse file tree 4 files changed +66
-5
lines changed
Expand file tree Collapse file tree 4 files changed +66
-5
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Snapshots
2+
3+ on :
4+ push :
5+ branches : [ 'master' ]
6+ workflow_dispatch :
7+ types : [dependency-trigger]
8+
9+ jobs :
10+ deploy :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : Set up JDK
16+ uses : actions/setup-java@v4
17+ with :
18+ distribution : ' temurin'
19+ java-version : 8
20+ cache : ' maven'
21+ server-id : central
22+ server-username : SONATYPE_USERNAME
23+ server-password : SONATYPE_PASSWORD
24+
25+ - name : Deploy snapshot
26+ run : mvn -B deploy --file pom.xml
27+ env :
28+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
29+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
Original file line number Diff line number Diff line change 1+ name : Release new version
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ release :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+
12+ - name : Set up JDK
13+ uses : actions/setup-java@v4
14+ with :
15+ distribution : ' temurin'
16+ java-version : 8
17+ cache : ' maven'
18+ server-id : central
19+ server-username : SONATYPE_USERNAME
20+ server-password : SONATYPE_PASSWORD
21+
22+ # Set up git config
23+ - name : Setup Git Config
24+ run : |
25+ git config user.name "Github Action"
26+ git config user.email "github-action@users.noreply.github.com"
27+
28+ - name : Deploy release
29+ run : mvn -B release:prepare release:perform -Prelease --file pom.xml
30+ env :
31+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
32+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
33+ MAVEN_GPG_PASSPHRASE : ${{ secrets.SONATYPE_GPG_PASSPHRASE }}
34+ MAVEN_GPG_KEY : ${{ secrets.SONATYPE_GPG_PRIVATE_KEY }}
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1- name : Build with Maven
1+ name : Verify PRs
22
33on :
4- push :
5- branches : [ master ]
64 pull_request :
7- branches : [ master ]
85 workflow_dispatch :
96
107jobs :
Original file line number Diff line number Diff line change 1111 <properties >
1212 <pihemrContentGroupId >org.pih.openmrs</pihemrContentGroupId >
1313 <pihemrContentArtifactId >pihemr-content</pihemrContentArtifactId >
14- <pihemrContentVersion >1.0 .0-SNAPSHOT</pihemrContentVersion >
14+ <pihemrContentVersion >1.1 .0-SNAPSHOT</pihemrContentVersion >
1515
1616 <parentBuildDir >${project.build.directory}/parent</parentBuildDir >
1717 <childBuildDir >${project.build.directory}/child</childBuildDir >
You can’t perform that action at this time.
0 commit comments