Skip to content

Commit

Permalink
Fixes #16: Update workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
drewctaylor committed Mar 21, 2023
1 parent 1c8e539 commit 08837a6
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 20 deletions.
45 changes: 25 additions & 20 deletions .github/workflows/workflow-maven-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,36 @@
name: workflow-maven-deploy
name: "workflow-maven-deploy"

on: [ push ]
on:
push:
branches:
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-SNAPSHOT"

jobs:
build:
runs-on: ubuntu-latest
runs-on: "ubuntu-latest"

steps:
- name: Step 1 - Checkout.
uses: actions/checkout@v2
- name: "Step 1 - Checkout."
uses: "actions/checkout@v3"

- name: Step 2 - Setup Java.
uses: actions/setup-java@v1
- name: "Step 2 - Setup Java."
uses: "actions/setup-java@v3"
with:
java-version: 11
server-id: ossrh
server-username: SERVER_USERNAME
server-password: SERVER_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
distribution: "temurin"
java-version: "11"
server-id: "ossrh"
server-username: "SERVER_USERNAME"
server-password: "SERVER_PASSWORD"
gpg-private-key: "${{ secrets.GPG_PRIVATE_KEY }}"
gpg-passphrase: "GPG_PASSPHRASE"

- name: Step 3 - Maven Deploy.
run: mvn -B deploy -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- name: "Step 3 - Maven Deploy."
run: "mvn -B deploy -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=error"
env:
SERVER_USERNAME: ${{ secrets.OSSRH_USERNAME }}
SERVER_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
SERVER_USERNAME: "${{ secrets.OSSRH_USERNAME }}"
SERVER_PASSWORD: "${{ secrets.OSSRH_PASSWORD }}"
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"

- name: Step 4 - CodeCov.
uses: codecov/codecov-action@v1
- name: "Step 4 - CodeCov."
uses: "codecov/codecov-action@v3"
30 changes: 30 additions & 0 deletions .github/workflows/workflow-maven-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "workflow-maven-install"

on:
push:
branches-ignore:
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-SNAPSHOT"

jobs:
build:
runs-on: "ubuntu-latest"

steps:
- name: "Step 1 - Checkout."
uses: "actions/checkout@v3"

- name: "Step 2 - Setup Java."
uses: "actions/setup-java@v3"
with:
distribution: "temurin"
java-version: "11"
server-id: "ossrh"
server-username: "SERVER_USERNAME"
server-password: "SERVER_PASSWORD"

- name: "Step 3 - Maven Install."
run: "mvn -B install -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=error -Dgpg.skip"
env:
SERVER_USERNAME: "${{ secrets.OSSRH_USERNAME }}"
SERVER_PASSWORD: "${{ secrets.OSSRH_PASSWORD }}"

0 comments on commit 08837a6

Please sign in to comment.