Skip to content

Commit

Permalink
Only sign local Maven publication on merges to main
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt committed Jul 12, 2023
1 parent a694b0f commit b5979c7
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 @@ -29,10 +29,8 @@ jobs:
arguments: check

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

jobs:
local-publish:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: publishToMavenLocal
if: github.repository_owner == 'JuulLabs'
uses: gradle/gradle-build-action@v2
with:
arguments: |
-PsigningInMemoryKey=${{ secrets.SIGNING_KEY }}
-PsigningInMemoryKeyPassword=${{ secrets.SIGNING_PASSWORD }}
publishToMavenLocal

0 comments on commit b5979c7

Please sign in to comment.