Skip to content

Commit

Permalink
Update publish action.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadeasKriz committed Aug 8, 2024
1 parent b3291a2 commit 91a5d48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ jobs:
env:
SKIE_REPLACEMENT_STRING: ${{ secrets.SKIE_REPLACEMENT_STRING }}
- name: Publish to Maven Central
uses: gradle/[email protected]
with:
arguments: 'publishToSonatype closeAndReleaseSonatypeStagingRepository'
build-root-directory: SKIE
run: |
./publish.sh
working-directory: SKIE
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
Expand Down
4 changes: 1 addition & 3 deletions SKIE/publish.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
set -xe

export RELEASE_VERSION=0.9.0

./gradlew :initializeSonatypeStagingRepository

./gradlew findSonatypeStagingRepository -x initializeSonatypeStagingRepository publishToSonatype

./gradlew :findSonatypeStagingRepository -x initializeSonatypeStagingRepository :closeSonatypeStagingRepository
./gradlew :findSonatypeStagingRepository -x initializeSonatypeStagingRepository :closeAndReleaseSonatypeStagingRepository

0 comments on commit 91a5d48

Please sign in to comment.