Skip to content

Commit

Permalink
Merged in the latest release used in java projects (#160)
Browse files Browse the repository at this point in the history
* fixing action syntax

* latest release workflow, on publish
  • Loading branch information
chayim committed Jul 29, 2021
1 parent 530951f commit 37dcaec
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/version-and-release.yml
@@ -1,9 +1,8 @@
name: Release

on:
push:
tags:
- '*'
release:
types: [published]

jobs:
build:
Expand Down Expand Up @@ -33,14 +32,14 @@ jobs:

- name: Install gpg key
run: |
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
cat <(echo -e "${{ secrets.OSSH_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Publish
run: |
mvn --no-transfer-progress \
--batch-mode \
-Dgpg.passphrase='${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}' \
-Dgpg.passphrase='${{ secrets.OSSH_GPG_SECRET_KEY_PASSWORD }}' \
-DskipTests deploy -P release
env:
MAVEN_USERNAME: ${{secrets.OSSH_USERNAME}}
Expand Down

0 comments on commit 37dcaec

Please sign in to comment.