This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish package to GitHub Packages | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
publish-kotlin-multiplatform: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: chmod +x ./gradlew | |
- name: Publish kotlinMultiplatform package | |
run: ./gradlew publishKotlinMultiplatformPublicationToGitHubPackagesRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ github.sha }} | |
publish-jvm: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: chmod +x ./gradlew | |
- name: Publish jvm package | |
run: ./gradlew publishJvmPublicationToGitHubPackagesRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ github.sha }} | |
publish-android-debug: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: chmod +x ./gradlew | |
- name: Publish androidDebug package | |
run: ./gradlew publishAndroidDebugPublicationToGitHubPackagesRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ github.sha }} | |
publish-android-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: chmod +x ./gradlew | |
- name: Publish androidRelease package | |
run: ./gradlew publishAndroidReleasePublicationToGitHubPackagesRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ github.sha }} | |
publish-js: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: chmod +x ./gradlew | |
- name: Publish js package | |
run: ./gradlew publishJsPublicationToGitHubPackagesRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ github.sha }} | |
publish-wasm-js: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: chmod +x ./gradlew | |
- name: Publish wasmJs package | |
run: ./gradlew publishWasmJsPublicationToGitHubPackagesRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ github.sha }} | |
publish-ios-x64: | |
runs-on: macos-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: chmod +x ./gradlew | |
- name: Publish iosX64 package | |
run: ./gradlew publishIosX64PublicationToGitHubPackagesRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ github.sha }} | |
publish-ios-arm64: | |
runs-on: macos-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: chmod +x ./gradlew | |
- name: Publish iosArm64 package | |
run: ./gradlew publishIosArm64PublicationToGitHubPackagesRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ github.sha }} | |
publish-ios-simulator-arm64: | |
runs-on: macos-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: chmod +x ./gradlew | |
- name: Publish iosSimulatorArm64 package | |
run: ./gradlew publishIosSimulatorArm64PublicationToGitHubPackagesRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ github.sha }} | |
publish-macos-x64: | |
runs-on: macos-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: chmod +x ./gradlew | |
- name: Publish macosX64 package | |
run: ./gradlew publishMacosX64PublicationToGitHubPackagesRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ github.sha }} | |
publish-macos-arm64: | |
runs-on: macos-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: chmod +x ./gradlew | |
- name: Publish macosArm64 package | |
run: ./gradlew publishMacosArm64PublicationToGitHubPackagesRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ github.sha }} | |
publish-linux-x64: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: chmod +x ./gradlew | |
- name: Publish linuxX64 package | |
run: ./gradlew publishLinuxX64PublicationToGitHubPackagesRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ github.sha }} | |
publish-mingw-x64: | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- uses: gradle/actions/setup-gradle@v4 | |
- run: chmod +x ./gradlew | |
- name: Publish mingwX64 package | |
run: ./gradlew publishMingwX64PublicationToGitHubPackagesRepository | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ github.sha }} |