diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml index 4433a3a..a0a4c58 100644 --- a/.github/workflows/on-release.yml +++ b/.github/workflows/on-release.yml @@ -28,9 +28,15 @@ jobs: run: chmod +x ./gradlew - name: build run: ./gradlew build - - name: publish release + - name: publish release files if: ${{ runner.os == 'Linux' && matrix.java == '17' }} uses: AButler/upload-release-assets@v2.0 with: files: 'build/libs/*;LICENSE' repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: publish release package + if: ${{ runner.os == 'Linux' && matrix.java == '17' }} + run: ./gradlew publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +