Skip to content

Commit cdfe6bf

Browse files
authored
Merge pull request #9 from square/handstandsam.2024.06.30.prepare-dev-version
Prepare next dev version 0.0.2-dev-SNAPSHOT
2 parents 0ac12c8 + e57b954 commit cdfe6bf

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
- name: Gradle Wrapper Validation
3838
uses: gradle/actions/wrapper-validation@v3
3939

40+
- name: Retrieve Version from gradle.properties
41+
run: echo "VERSION_NAME=$(cat gradle.properties | grep "^version=" | awk -F'=' '{print $2}')" >> $GITHUB_ENV
4042

4143
- name: Test on Ubuntu
4244
run: ./gradlew assemble check --no-build-cache --no-daemon --stacktrace
@@ -83,7 +85,7 @@ jobs:
8385
needs:
8486
- test-ubuntu
8587
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')
8789
timeout-minutes: 25
8890

8991
steps:
@@ -112,11 +114,10 @@ jobs:
112114

113115

114116
publish-release:
115-
# Temporary to help debug publishing of 0.0.1-dev
116-
# needs:
117-
# - test-ubuntu
117+
needs:
118+
- test-ubuntu
118119
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')
120121
timeout-minutes: 25
121122

122123
steps:
@@ -133,9 +134,6 @@ jobs:
133134
- name: Gradle Wrapper Validation
134135
uses: gradle/actions/wrapper-validation@v3
135136

136-
- name: Retrieve Version from gradle.properties
137-
run: echo "VERSION_NAME=$(cat gradle.properties | grep "^version=" | awk -F'=' '{print $2}')" >> $GITHUB_ENV
138-
139137
- name: Publish release (main only)
140138
run: ./gradlew publishToMavenCentral --no-configuration-cache --stacktrace --no-parallel
141139
if: success() && !endsWith(env.VERSION_NAME, '-SNAPSHOT')

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# 🔃 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/)
33
[![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)
45

56
Invert is a Gradle Plugin with a dynamic web report that lets you gain insights into your Gradle project via static analysis.
67

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ kotlin.code.style=official
33
android.useAndroidX=true
44

55
group=com.squareup.invert
6-
version=0.0.1-dev
6+
version=0.0.2-dev00-SNAPSHOT

0 commit comments

Comments
 (0)