Skip to content

Commit

Permalink
Merge pull request #9 from square/handstandsam.2024.06.30.prepare-dev…
Browse files Browse the repository at this point in the history
…-version

Prepare next dev version 0.0.2-dev-SNAPSHOT
  • Loading branch information
handstandsam authored Jul 1, 2024
2 parents 0ac12c8 + e57b954 commit cdfe6bf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3

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

- name: Test on Ubuntu
run: ./gradlew assemble check --no-build-cache --no-daemon --stacktrace
Expand Down Expand Up @@ -83,7 +85,7 @@ jobs:
needs:
- test-ubuntu
runs-on: ubuntu-latest
if: github.repository == 'square/invert' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
if: github.repository == 'square/invert' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && endsWith(env.VERSION_NAME, '-SNAPSHOT')
timeout-minutes: 25

steps:
Expand Down Expand Up @@ -112,11 +114,10 @@ jobs:


publish-release:
# Temporary to help debug publishing of 0.0.1-dev
# needs:
# - test-ubuntu
needs:
- test-ubuntu
runs-on: ubuntu-latest
if: github.repository == 'square/invert' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
if: github.repository == 'square/invert' && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && !endsWith(env.VERSION_NAME, '-SNAPSHOT')
timeout-minutes: 25

steps:
Expand All @@ -133,9 +134,6 @@ jobs:
- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3

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

- name: Publish release (main only)
run: ./gradlew publishToMavenCentral --no-configuration-cache --stacktrace --no-parallel
if: success() && !endsWith(env.VERSION_NAME, '-SNAPSHOT')
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 🔃 Invert
[![LICENSE](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/square/invert/blob/main/LICENSE)
[![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/)
[![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/)
[![LICENSE](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/square/invert/blob/main/LICENSE)

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

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kotlin.code.style=official
android.useAndroidX=true

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

0 comments on commit cdfe6bf

Please sign in to comment.