From 1cd55868acaef925756bd5f5f4fec16412984cfa Mon Sep 17 00:00:00 2001 From: Chris Arriola Date: Tue, 9 Mar 2021 16:05:56 -0800 Subject: [PATCH] chore: Add back semantic-release/exec. --- .github/workflows/release.yml | 27 +++++++++++++-------------- .releaserc | 3 +++ 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18b85bcc..19c7ff98 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,17 +24,6 @@ jobs: uses: actions/checkout@v2 with: token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }} - - - name: Semantic Release - uses: cycjimmy/semantic-release-action@v2 - with: - extra_plugins: | - "@semantic-release/commit-analyzer" - "@semantic-release/release-notes-generator" - "@google/semantic-release-replace-plugin" - "@semantic-release/git - "@semantic-release/github - - name: Create .gpg key run: | echo $GPG_KEY_ARMOR | base64 --decode > ./release.asc @@ -45,12 +34,22 @@ jobs: sed -i -e "s,signing.keyId=,signing.keyId=$GPG_KEY_ID,g" gradle.properties sed -i -e "s,signing.password=,signing.password=$GPG_PASSWORD,g" gradle.properties sed -i -e "s,signing.secretKeyRingFile=,signing.secretKeyRingFile=$GITHUB_WORKSPACE/release.gpg,g" gradle.properties - ./gradlew build publish --warn --stacktrace - env: - GH_TOKEN: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }} GPG_KEY_ARMOR: "${{ secrets.SYNCED_GPG_KEY_ARMOR }}" GPG_KEY_ID: ${{ secrets.SYNCED_GPG_KEY_ID }} GPG_PASSWORD: ${{ secrets.SYNCED_GPG_KEY_PASSWORD }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + + - name: Semantic Release + uses: cycjimmy/semantic-release-action@v2 + with: + extra_plugins: | + "@semantic-release/commit-analyzer" + "@semantic-release/release-notes-generator" + "@google/semantic-release-replace-plugin" + "@semantic-release/exec" + "@semantic-release/git + "@semantic-release/github + env: + GH_TOKEN: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }} diff --git a/.releaserc b/.releaserc index ef338ecd..2bf928c3 100644 --- a/.releaserc +++ b/.releaserc @@ -13,6 +13,9 @@ plugins: - "README.md" from: "ktx:[0-9].[0-9].[0-9]" to: "ktx:${nextRelease.version}" + - - "@semantic-release/exec" + - prepareCmd: "./gradlew build --warn --stacktrace" + publishCmd: "./gradlew publish --warn --stacktrace" - - "@semantic-release/git" - assets: - "./build.gradle"