Skip to content

Commit

Permalink
Cross fingers, try release
Browse files Browse the repository at this point in the history
  • Loading branch information
alorma committed Feb 29, 2024
1 parent a7ec63b commit edb8f35
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ on:
types: [ released ]

jobs:
build:
name: Build - Release
check-sign:
name: Check signature - Main
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17

- name: Cache Gradle packages
uses: actions/cache@v4
with:
Expand All @@ -25,13 +27,21 @@ jobs:
~/.gradle/wrapper
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}

# Builds the release artifacts of the library
- name: Build
run: ./gradlew build
# Runs upload, and then closes & releases the repository
- name: Sign release
run: ./gradlew signReleasePublication
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
GPG_KEY_CONTENTS: ${{ secrets.GPG_KEY_CONTENTS }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}

fake-publish:
name: Fake publish - Release
needs: [ build ]
needs: [ check-sign ]
runs-on: macos-latest
steps:
- name: Check out code
Expand Down Expand Up @@ -62,7 +72,7 @@ jobs:

publish:
name: Publish - Release
needs: [ build ]
needs: [ check-sign ]
runs-on: macos-latest
steps:
- name: Check out code
Expand Down

0 comments on commit edb8f35

Please sign in to comment.