Skip to content

Commit

Permalink
Updates publish action.
Browse files Browse the repository at this point in the history
  • Loading branch information
rharter committed Jun 6, 2024
1 parent 1c219bb commit 281e541
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,10 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: Upload Snapshot
run: ./gradlew -p focus-gradle-plugin clean publish --no-daemon --no-parallel --no-configuration-cache --stacktrace
- name: Publish release
run: ./gradlew -p focus-gradle-plugin clean publishAndReleaseToMavenCentral --no-daemon --no-parallel --no-configuration-cache --stacktrace
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}

- name: Retrieve Version
run: echo "VERSION_NAME=$(./gradlew -q -p focus-gradle-plugin printVersionName)" >> $GITHUB_ENV

- name: Publish release (main only)
run: ./gradlew -p focus-gradle-plugin closeAndReleaseRepository --no-daemon --no-parallel
if: success() && !endsWith(env.VERSION_NAME, '-SNAPSHOT')
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## Version 0.6.0

_2024-06-06_

* Supports Windows file path separator (Thanks [@SimonMarquis]!) [#36](https://github.com/dropbox/focus/pull/36)
* Adds support for Gradle 8.x. [#48](https://github.com/dropbox/focus/pull/48)

## Version 0.5.1

_2022-05-19_
Expand Down

0 comments on commit 281e541

Please sign in to comment.