File tree 3 files changed +9
-10
lines changed 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 37
37
- name : Gradle Wrapper Validation
38
38
uses : gradle/actions/wrapper-validation@v3
39
39
40
+ - name : Retrieve Version from gradle.properties
41
+ run : echo "VERSION_NAME=$(cat gradle.properties | grep "^version=" | awk -F'=' '{print $2}')" >> $GITHUB_ENV
40
42
41
43
- name : Test on Ubuntu
42
44
run : ./gradlew assemble check --no-build-cache --no-daemon --stacktrace
83
85
needs :
84
86
- test-ubuntu
85
87
runs-on : ubuntu-latest
86
- if : github.repository == 'square/invert' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
88
+ if : github.repository == 'square/invert' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && endsWith(env.VERSION_NAME, '-SNAPSHOT')
87
89
timeout-minutes : 25
88
90
89
91
steps :
@@ -112,11 +114,10 @@ jobs:
112
114
113
115
114
116
publish-release :
115
- # Temporary to help debug publishing of 0.0.1-dev
116
- # needs:
117
- # - test-ubuntu
117
+ needs :
118
+ - test-ubuntu
118
119
runs-on : ubuntu-latest
119
- if : github.repository == 'square/invert' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
120
+ if : github.repository == 'square/invert' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && !endsWith(env.VERSION_NAME, '-SNAPSHOT')
120
121
timeout-minutes : 25
121
122
122
123
steps :
@@ -133,9 +134,6 @@ jobs:
133
134
- name : Gradle Wrapper Validation
134
135
uses : gradle/actions/wrapper-validation@v3
135
136
136
- - name : Retrieve Version from gradle.properties
137
- run : echo "VERSION_NAME=$(cat gradle.properties | grep "^version=" | awk -F'=' '{print $2}')" >> $GITHUB_ENV
138
-
139
137
- name : Publish release (main only)
140
138
run : ./gradlew publishToMavenCentral --no-configuration-cache --stacktrace --no-parallel
141
139
if : success() && !endsWith(env.VERSION_NAME, '-SNAPSHOT')
Original file line number Diff line number Diff line change 1
1
# 🔃 Invert
2
- [ ![ LICENSE ] ( https://img.shields.io/badge/License-Apache%202.0- blue.svg )] ( https://github. com/square /invert/blob/main/LICENSE )
2
+ [ ![ Maven Central ] ( https://img.shields.io/badge/dynamic/xml?url=https://repo1.maven.org/maven2/com/squareup/invert/invert-gradle-plugin/maven-metadata.xml&label=Latest%20Stable&color= blue&query=.//versioning/latest )] ( https://repo1.maven.org/maven2/ com/squareup /invert/com.squareup.invert.gradle.plugin/ )
3
3
[ ![ Latest Snapshot] ( https://img.shields.io/badge/dynamic/xml?url=https://s01.oss.sonatype.org/content/repositories/snapshots/com/squareup/invert/invert-plugin/maven-metadata.xml&label=Latest%20Snapshot&color=orange&query=.//versioning/latest )] ( https://s01.oss.sonatype.org/content/repositories/snapshots/com/squareup/invert/com.squareup.invert.gradle.plugin/ )
4
+ [ ![ LICENSE] ( https://img.shields.io/badge/License-Apache%202.0-blue.svg )] ( https://github.com/square/invert/blob/main/LICENSE )
4
5
5
6
Invert is a Gradle Plugin with a dynamic web report that lets you gain insights into your Gradle project via static analysis.
6
7
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ kotlin.code.style=official
3
3
android.useAndroidX =true
4
4
5
5
group =com.squareup.invert
6
- version =0.0.1-dev
6
+ version =0.0.2-dev00-SNAPSHOT
You can’t perform that action at this time.
0 commit comments