Skip to content

Commit

Permalink
tmp step to try deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklasl committed Sep 28, 2023
1 parent acbf776 commit 11e4e09
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,42 @@ on:
- main

jobs:
tmp_deploy:
name: Tmp step
runs-on: ubuntu-latest
steps:
- name: Check out src from Git
uses: actions/checkout@v4
with:
ref: ${{ needs.release-please.outputs.release_tag_name }}

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
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
with:
path: ~/.m2
key: ${{ runner.os }}-java-17-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-java-17-m2

- name: Deploy with Maven
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
test:
name: Build/Test

Expand Down

0 comments on commit 11e4e09

Please sign in to comment.