Skip to content

Commit

Permalink
update deploy actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Jan 31, 2021
1 parent 6788d55 commit ee1900e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 31 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/deploy-jdk8.yml

This file was deleted.

22 changes: 21 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on: workflow_dispatch
# - 'v*'

jobs:
build:
deploy:

runs-on: ubuntu-latest

Expand All @@ -31,3 +31,23 @@ jobs:
# mvn -Prelease source:jar javadoc:jar deploy -Dgpg.passphrase=thephrase
run: mvn -B -Prelease source:jar javadoc:jar deploy --file pom.xml -s settings-template.xml -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}

deploy-jdk8:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: GPG Setup
env:
GPG_KEY_BASE64: ${{ secrets.GPG_KEY_BASE64 }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: ./gpg-setup.sh
- name: Deploy to OSS Sonatype
env:
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
# mvn -Prelease source:jar javadoc:jar deploy -Dgpg.passphrase=thephrase
run: mvn -B -Prelease source:jar javadoc:jar deploy --file pom-jdk8.xml -s settings-template.xml -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}

0 comments on commit ee1900e

Please sign in to comment.