Skip to content

Commit

Permalink
ci: fix release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
monosoul committed Feb 8, 2024
1 parent 1eaae2a commit 6942950
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish plugin on release

on:
release:
types: [created]
types: [published]

jobs:
release:
Expand All @@ -16,8 +16,6 @@ jobs:
with:
distribution: 'temurin'
java-version: '17'
- name: Get the version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Run tests
uses: gradle/gradle-build-action@v3
with:
Expand All @@ -42,7 +40,7 @@ jobs:
ORG_GRADLE_PROJECT_withSigning: true
with:
arguments: |
-Pversion=${{ env.RELEASE_VERSION }}
-Pversion=${{ github.event.release.tag_name }}
-Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}
-Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}
--stacktrace
Expand Down

0 comments on commit 6942950

Please sign in to comment.