Skip to content

Commit

Permalink
Adding release steps for new targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Kantis committed Mar 15, 2023
1 parent 6333edd commit 325c2b5
Showing 1 changed file with 58 additions and 31 deletions.
89 changes: 58 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}

- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
distribution: 'zulu'

- name: deploy to sonatype
run: ./gradlew publishMingwX64PublicationToDeployRepository
Expand All @@ -46,12 +46,12 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}

- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
distribution: 'zulu'

- name: publish macosx64 release
run: ./gradlew publishMacosX64PublicationToDeployRepository
Expand All @@ -62,6 +62,15 @@ jobs:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}

- name: publish macosArm64 release
run: ./gradlew publishMacosArm64PublicationToDeployRepository
env:
RELEASE_VERSION: ${{ github.event.inputs.version }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}

- name: publish tvosX64 release
run: ./gradlew publishTvosX64PublicationToDeployRepository
env:
Expand All @@ -80,32 +89,41 @@ jobs:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}

# - name: publish watchosX64 release
# run: ./gradlew publishWatchosX64PublicationToDeployRepository
# env:
# RELEASE_VERSION: ${{ github.event.inputs.version }}
# OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
# OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
# ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
# ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
- name: publish watchosX86 release
run: ./gradlew publishWatchosX86PublicationToDeployRepository
env:
RELEASE_VERSION: ${{ github.event.inputs.version }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}

- name: publish watchosX64 release
run: ./gradlew publishWatchosX64PublicationToDeployRepository
env:
RELEASE_VERSION: ${{ github.event.inputs.version }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}

- name: publish watchosArm32 release
run: ./gradlew publishWatchosArm32PublicationToDeployRepository
env:
RELEASE_VERSION: ${{ github.event.inputs.version }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}

# - name: publish watchosArm32 release
# run: ./gradlew publishWatchosArm32PublicationToDeployRepository
# env:
# RELEASE_VERSION: ${{ github.event.inputs.version }}
# OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
# OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
# ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
# ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
#
# - name: publish watchosArm64 release
# run: ./gradlew publishWatchosArm64PublicationToDeployRepository
# env:
# RELEASE_VERSION: ${{ github.event.inputs.version }}
# OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
# OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
# ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
# ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
- name: publish watchosArm64 release
run: ./gradlew publishWatchosArm64PublicationToDeployRepository
env:
RELEASE_VERSION: ${{ github.event.inputs.version }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}

- name: publish iosX64 release
run: ./gradlew publishIosX64PublicationToDeployRepository
Expand Down Expand Up @@ -134,6 +152,15 @@ jobs:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}

- name: publish iosArm32 release
run: ./gradlew publishIosSimulatorArm64PublicationToDeployRepository
env:
RELEASE_VERSION: ${{ github.event.inputs.version }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}

publish_linux_and_common:
runs-on: ubuntu-latest

Expand All @@ -143,12 +170,12 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}

- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
distribution: 'zulu'

- name: publish multiplatform release
run: ./gradlew publishKotlinMultiplatformPublicationToDeployRepository
Expand Down

0 comments on commit 325c2b5

Please sign in to comment.