Skip to content

Commit dbd23b5

Browse files
Comment Publish, testing gpg
1 parent 5cd5ad8 commit dbd23b5

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Publish package to GitHub Packages
22
on:
3-
release:
4-
types: [created]
3+
push:
4+
branches:
5+
- '**'
6+
# release:
7+
# types: [created]
58
jobs:
69
publish:
710
runs-on: ubuntu-latest
@@ -14,7 +17,12 @@ jobs:
1417
with:
1518
java-version: '22'
1619
distribution: 'corretto'
17-
- name: Publish package
18-
run: mvn --batch-mode deploy -DskipTests
19-
env:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
- id: install-secret-key
21+
name: Install gpg secret key
22+
run: |
23+
cat <(echo -e "${{ secrets.GPG_SECRET_KEY }}") | gpg --batch --import
24+
gpg --list-secret-keys --keyid-format LONG
25+
# - name: Publish package
26+
# run: mvn --batch-mode deploy -DskipTests
27+
# env:
28+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)