Skip to content

Commit

Permalink
Update Build Action and Injection
Browse files Browse the repository at this point in the history
  • Loading branch information
nailujx86 committed Jun 21, 2024
1 parent 9fb5aa5 commit cafac89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ jobs:
id: release
shell: bash
run: echo "preRelease=${{ github.event.release.prerelease}}" >> $GITHUB_OUTPUT
- name: Build plugin
- name: Build plugin, sign plugin and publish plugin
run: ./gradlew buildPlugin signPlugin publishPlugin -PpreRelease=${{ steps.release.outputs.preRelease }}
env:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
- name: Sign and publish plugin
run: ./gradlew signPlugin publishPlugin -PpreRelease=${{ steps.release.outputs.preRelease }}
env:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ signPlugin {
}

publishPlugin {
token = System.getenv("PUBLISH_TOKEN")
hidden = getProperty("hidden")
token = System.getenv("PUBLISH_TOKEN")
setHidden(getProperty("hidden") as Boolean)
channels = getProperty("preRelease") ? ["autoconfig-beta"] : ["default", "autoconfig-beta"]
}

Expand Down

0 comments on commit cafac89

Please sign in to comment.