Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: tmp step to try deploy #34

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/ci-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
test:
name: Build/Test
name: Build, Test & Deploy snapshot

runs-on: ubuntu-latest

Expand All @@ -25,6 +25,11 @@ jobs:
with:
distribution: 'zulu'
java-version: ${{ matrix.java_version }}
server-id: ossrh
server-username: ${{ secrets.OSSRH_USERNAME }} # username for Sonatype JIRA login
server-password: ${{ secrets.OSSRH_TOKEN }} # password for Sonatype JIRA login
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} # Full private key blob
gpg-passphrase: ${{ secrets.SIGN_KEY_PASS }} # Password chosen when creating the GPG key

- name: Cache Maven packages
uses: actions/cache@v3.3.1
Expand All @@ -35,3 +40,15 @@ jobs:

- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify

- name: Deploy snapshot
if: ${{ matrix.java_version == 17 }} # No purpose in doing this part multiple times...
run: |
mvn --batch-mode \
--settings release/m2-settings.xml \
clean deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
GPG_PASS: ${{ secrets.SIGN_KEY_PASS }} # Password chosen when creating the GPG key