Skip to content

Publish SPM

Publish SPM #112

Workflow file for this run

name: Publish
on:
create:
tags:
- '^[0-9]+\.[0-9]+\.[0-9]+$'
push:
branches:
- publish-spm
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Adopt OpenJDK 17
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 17
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
publish:
needs: build
permissions:
contents: write
packages: write
uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/[email protected]
with:
runsOn: "macOS-14"
jvmVersion: 17
versionBaseProperty: LIBRARY_VERSION
publishTask: kmmBridgePublish publishKotlinMultiplatformPublicationToGitHubPackagesRepository publishAndroidReleasePublicationToGitHubPackagesRepository
secrets:
gradle_params: -PGITHUB_PUBLISH_USER=${{ secrets.GITHUB_ACTOR }} -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=https://github.com/Airthings/KmpLog.git