Skip to content

Commit

Permalink
Update gradle-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ssttkkl authored Dec 13, 2023
1 parent 7a4dfaa commit fdc1789
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle

name: Publish KMP
name: Publish KMP with Gradle

on:
release:
Expand All @@ -28,7 +28,12 @@ jobs:
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file


- uses: actions/setup-node@v4
- name: Set up Node.js 22-v8-canary
with:
node-version: '22-v8-canary'

- name: Decode secret_ring.gpg
env:
SIGNING_SECRET_KEY_RING_BASE64: ${{ secrets.SIGNING_SECRET_KEY_RING_BASE64 }}
Expand Down Expand Up @@ -57,3 +62,10 @@ jobs:
- name: Publish mahjong-utils
run: |
./gradlew :mahjong-utils:publish
- name: Publish mahjong-utils-entry for JS/WASM
run: |
./gradlew :mahjong-utils-entry:publishJsPackageToNpmjsRegistry
./gradlew :mahjong-utils-entry:publishWasmJsPackageToNpmjsRegistry
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit fdc1789

Please sign in to comment.