Skip to content

Publish macos build to styx repo #1

Publish macos build to styx repo

Publish macos build to styx repo #1

name: "Publish macos build to styx repo"
on:
workflow_dispatch:
inputs:
version:
required: true
type: string
jobs:
build:
runs-on: macos-latest
env:
STYX_REPO_TOKEN: ${{ secrets.STYX_REPO_TOKEN }}
STYX_REPO_SECRET: ${{ secrets.STYX_REPO_SECRET }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: "Setup JDK"
id: setup-java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: gradle
- name: "Build and publish library"
env:
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
run: |
chmod u+x ./gradlew
./gradlew publishAllPublicationsToStyxRepository -Pversion=${{ inputs.version }} -Dorg.gradle.parallel=false --stacktrace --no-configuration-cache