Skip to content

Commit

Permalink
try to release without sign-artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ball, Nware committed Oct 5, 2022
1 parent 8a9aab5 commit c551d46
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish package to the Maven Central Repository
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with: # running setup-java again overwrites the settings.xml
distribution: 'temurin'
java-version: '11'
server-id: sonatype-nexus-snapshots # Value of the distributionManagement/repository/id field of the pom.xml
server-username: CI_DEPLOY_USERNAME # env variable for username in deploy
server-password: CI_DEPLOY_PASSWORD # env variable for token in deploy
gpg-private-key: ${{ secrets.CI_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: CI_PGP_PASSWORD # env variable for GPG private key passphrase

- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: 4

- name: Publish package
run: mvn --batch-mode deploy
env:
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
CI_PGP_PASSWORD: ${{ secrets.CI_PGP_PASSWORD }}

0 comments on commit c551d46

Please sign in to comment.