Skip to content

Commit 46b2193

Browse files
committed
chore: fixed release yml
1 parent 8a26a33 commit 46b2193

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Parsek Mail Plugin Release
1+
name: Parsek Plugin Release
22

33
on:
44
push:
@@ -78,10 +78,16 @@ jobs:
7878
with:
7979
node-version: "lts/*"
8080

81-
- name: Install deps for semantic-release
81+
- name: Download build artifacts
82+
uses: actions/download-artifact@v4
83+
with:
84+
name: build-artifacts
85+
path: build/libs/
86+
87+
- name: Verify downloaded artifacts
8288
run: |
83-
npm ci
84-
# Eğer package.json yoksa bu adımı kaldırabilirsiniz
89+
echo "Contents of build/libs:"
90+
ls -la build/libs || true
8591
8692
- name: Create GitHub Release with semantic-release
8793
env:
@@ -118,6 +124,14 @@ jobs:
118124
- name: Verify downloaded artifacts
119125
run: ls -R build/libs
120126

127+
- name: Publish to Maven Central with JReleaser
128+
run: |
129+
./gradlew -Pversion=${{ needs.get-next-version.outputs.new_tag_version }} publish
130+
env:
131+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
132+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
133+
134+
121135
- name: Deploy to Maven Central with JReleaser
122136
id: jreleaser
123137
run: |

0 commit comments

Comments
 (0)