Skip to content

Commit

Permalink
ci: reverted the testing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Oct 23, 2024
1 parent 4505f93 commit 3940e80
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Publish
on:
release:
types: [published]
pull_request:
branches:
- master

jobs:
publish:
Expand Down Expand Up @@ -44,21 +41,21 @@ jobs:
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

# - name: Import GPG Key
# run: |
# echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
# env:
# GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY}}
- name: Import GPG Key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY}}

# - name: Publish to Maven
# run: |
# export GPG_TTY=$(tty)
# mvn clean deploy -DskipTests=true
# env:
# MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
# MAVEN_PASSWORD: ${{ secrets.MAVEN_TOKEN }}
# GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
# working-directory: Xero-Java
- name: Publish to Maven
run: |
export GPG_TTY=$(tty)
mvn clean deploy -DskipTests=true
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_TOKEN }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
working-directory: Xero-Java

notify-slack-on-success:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3940e80

Please sign in to comment.