File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will build a Java project with Gradle
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+ name : Snapshot Release
5+
6+ on :
7+ push :
8+ tags :
9+ - v[0-9]+.[0-9]+.[0-9]+-SNAPSHOT
10+ - v[0-9]+.[0-9]+.[0-9]+-[0-9a-zA-Z]+-SNAPSHOT
11+ - v[0-9]+.[0-9]+.[0-9]+-[0-9a-zA-Z]+-[0-9a-zA-Z]+-SNAPSHOT
12+
13+ jobs :
14+ release :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Cancel previous workflow runs
18+ uses : styfle/cancel-workflow-action@0.9.1
19+ with :
20+ access_token : ${{ github.token }}
21+
22+ - uses : actions/checkout@v2
23+ with :
24+ submodules : recursive
25+
26+ - name : Set up JDK 8
27+ uses : actions/setup-java@v1
28+ with :
29+ java-version : 8
30+
31+ - name : Decode & Generate Settings.xml file
32+ run : echo $SETTINGS_FILE | base64 -di > ~/.m2/settings.xml
33+ env :
34+ SETTINGS_FILE : ${{ secrets.SETTINGS_XML }}
35+
36+ - name : Generate & upload library snapshot artifact JAR (Java Archive) file
37+ run : mvn clean deploy -Dmaven.test.skip=true --no-transfer-progress -Dmaven.javadoc.skip=true
38+
39+ - name : Github Release
40+ uses : softprops/action-gh-release@v1
41+ with :
42+ prerelease : ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') }}
Original file line number Diff line number Diff line change 22[ ![ Build Status] ( https://travis-ci.org/OpenSRP/opensrp-plan-evaluator.svg?branch=master )] ( https://travis-ci.org/OpenSRP/opensrp-plan-evaluator ) [ ![ Coverage Status] ( https://coveralls.io/repos/github/OpenSRP/opensrp-plan-evaluator/badge.svg?branch=master )] ( https://coveralls.io/github/OpenSRP/opensrp-plan-evaluator?branch=master ) [ ![ Codacy Badge] ( https://api.codacy.com/project/badge/Grade/97b0f387f0fa484caffea641f4762fbe )] ( https://www.codacy.com/app/OpenSRP/opensrp-plan-evaluator?utm_source=github.com& ; utm_medium=referral& ; utm_content=OpenSRP/opensrp-plan-evaluator& ; utm_campaign=Badge_Grade )
33
44OpenSRP library that evaluates plans actions for task generation
5+
6+ ## Publishing artifacts
7+
8+ For more on publishing this artifact see [ Publishing via Tag] ( https://smartregister.atlassian.net/wiki/spaces/Documentation/pages/3013902337/How+to+set+up+Server+Library+artifact+CI+CD+on+Github#Publishing-via-TAG )
Original file line number Diff line number Diff line change 66
77 <artifactId >opensrp-plan-evaluator</artifactId >
88 <packaging >jar</packaging >
9- <version >1.6.7 -SNAPSHOT</version >
9+ <version >1.6.8 -SNAPSHOT</version >
1010 <name >OpenSRP Plan Evaluator</name >
1111 <description >OpenSRP Plan Evaluator Library</description >
1212 <url >https://github.com/OpenSRP/opensrp-plan-evaluator</url >
You can’t perform that action at this time.
0 commit comments