Skip to content

Commit

Permalink
Update release-on-maven-central.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah authored Apr 19, 2022
1 parent f786c22 commit 52a245c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release-on-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ jobs:
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Set up Git Config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git config --global user.name "GitHub Actions Bot"
git config --global user.email "[email protected]"
- name: Deploy with Maven
run: |
cat $HOME/.m2/settings.xml
cd maven
bash update-version.sh "$GITHUB_REF_NAME"
export GPG_TTY=$(tty)
mvn deploy -Psign-artifacts -Dgpg.passphrase=$MAVEN_GPG_PASSPHRASE -X
mvn deploy -Psign-artifacts -Dgpg.passphrase=$MAVEN_GPG_PASSPHRASE
cd ..
git clone https://github.com/shannah/cn1-maven-archetypes
cd cn1-maven-archetypes
bash update-version.sh "$GITHUB_REF_NAME"
mvn deploy -Psign-artifacts -Dgpg.passphrase=$MAVEN_GPG_PASSPHRASE -X
mvn deploy -Psign-artifacts -Dgpg.passphrase=$MAVEN_GPG_PASSPHRASE
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
Expand Down

0 comments on commit 52a245c

Please sign in to comment.