File tree Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change 11name : CI
22
3- on :
4- push :
5- branches :
6- - master
7- - develop
8- pull_request :
9- branches :
10- - master
11- - develop
3+ on : [push]
124
135jobs :
146 build :
179
1810 - name : Checkout
191112+ with :
13+ fetch-depth : 0
2014
2115 - name : Set up JDK 1.11
22162620 check-latest : true
2721 cache : ' maven'
2822
29- - name : Build with Maven
23+ - name : License Header Check
24+ run : mvn license:check
25+
26+ - name : Build
3027 run : mvn -B package --file pom.xml
3128
3229 - name : Analyze
@@ -40,12 +37,17 @@ jobs:
4037 -Dsonar.organization=insideapp-oss \
4138 -Dsonar.projectKey=insideapp-oss_sonar-flutter
4239
43- - id : get-version
44- name : Get maven project version
45- 40+ - name : Read version
41+ run : echo "version=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> $GITHUB_ENV
4642
47- - name : Upload plugin artifact
48- 43+ - name : Upload snapshot release
44+ if : github.ref == 'refs/heads/develop'
45+ uses : svenstaro/upload-release-action@v2
4946 with :
50- name : plugin
51- path : sonar-flutter-plugin/target/sonar-flutter-plugin-${{ steps.get-version.outputs.version }}.jar
47+ repo_token : ${{ secrets.GITHUB_TOKEN }}
48+ file : ${{github.workspace}}/sonar-flutter-plugin/target/*.jar
49+ tag : ${{env.version}}
50+ overwrite : true
51+ body : " Snapshot release"
52+ file_glob : true
53+ prerelease : true
You can’t perform that action at this time.
0 commit comments