Skip to content

Commit

Permalink
Move Maven local release signing to its own workflow (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt authored Apr 4, 2024
1 parent eb4ae3e commit 554bccd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,11 @@ jobs:
- uses: codecov/codecov-action@v4

- name: publishToMavenLocal
if: github.repository_owner == 'JuulLabs'
uses: gradle/gradle-build-action@v3
with:
arguments: |
-PVERSION_NAME=unspecified
-PsigningInMemoryKey=${{ secrets.SIGNING_KEY }}
-PsigningInMemoryKeyPassword=${{ secrets.SIGNING_PASSWORD }}
-PRELEASE_SIGNING_ENABLED=false
publishToMavenLocal
- name: Website
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/signing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Validate Maven Signing
on:
push:
branches:
- main

jobs:
signing:
if: github.repository_owner == 'JuulLabs'
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: publishToMavenLocal
uses: gradle/gradle-build-action@v3
with:
arguments: |
-PsigningInMemoryKey=${{ secrets.SIGNING_KEY }}
-PsigningInMemoryKeyPassword=${{ secrets.SIGNING_PASSWORD }}
publishToMavenLocal

0 comments on commit 554bccd

Please sign in to comment.