Skip to content

Commit

Permalink
Add GitHub Action for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
StefMa committed Sep 15, 2023
1 parent 927bc2f commit 405da1c
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: 'Publish'

on:
pull_request: # TODO: Fix me, use git tag push ...

jobs:
publish-kmp-metadata:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Publish metadata
run: ./gradlew publishKotlinMultiplatformPublicationToGitHubPackagesRepository -PgithubPackages.user=$GITHUB_ACTOR -PgithubPackages.key=${{ secrets.GITHUB_TOKEN }}

publish-jvm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Publish jvm
run: ./gradlew publishJvmPublicationToGitHubPackagesRepository -PgithubPackages.user=$GITHUB_ACTOR -PgithubPackages.key=${{ secrets.GITHUB_TOKEN }}

publish-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Publish linux
run: ./gradlew publishNativePublicationToGitHubPackagesRepository -PgithubPackages.user=$GITHUB_ACTOR -PgithubPackages.key=${{ secrets.GITHUB_TOKEN }}

publish-darwin:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Publish darwin
run: ./gradlew publishNativePublicationToGitHubPackagesRepository -PgithubPackages.user=$GITHUB_ACTOR -PgithubPackages.key=${{ secrets.GITHUB_TOKEN }}

publish-mingw:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Publish mingw
run: ./gradlew publishNativePublicationToGitHubPackagesRepository -PgithubPackages\.user=$GITHUB_ACTOR -PgithubPackages\.key=${{ secrets.GITHUB_TOKEN }}

0 comments on commit 405da1c

Please sign in to comment.