Skip to content

Commit

Permalink
Added release watchos
Browse files Browse the repository at this point in the history
  • Loading branch information
sksamuel committed Apr 17, 2023
1 parent 1c55ffc commit 855d4fd
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/release_watchos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: release-watchos

on:
workflow_dispatch:
inputs:
version:
description: "The release version"
required: true
branch:
description: "The branch to release from"
required: true
default: 'master'

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 }}
GRADLE_OPTS: -Dorg.gradle.configureondemand=true -Dorg.gradle.parallel=false -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxMetaspaceSize=756m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"

permissions:
contents: read

publish_mac:
runs-on: macos-11
strategy:
max-parallel: 6
matrix:
target:
- publishWatchosArm32PublicationToDeployRepository
- publishWatchosArm64PublicationToDeployRepository
- publishWatchosX86PublicationToDeployRepository
- publishWatchosX64PublicationToDeployRepository
- publishWatchosSimulatorArm64PublicationToDeployRepository
steps:
- name: Checkout the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}

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

- uses: gradle/gradle-build-action@v2

- name: publish
run: ./gradlew ${{ matrix.target }}

0 comments on commit 855d4fd

Please sign in to comment.