Skip to content

Bugfix/release scripts #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .github/workflows/publish.yml

This file was deleted.

56 changes: 55 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ jobs:
run: ./gradlew assembleJsonLogicKMPXCFramework

- name: Zip XCFramework
run: zip -r "${{ env.xcframework_zip_name }}" "build/XCFrameworks/release/${{ env.xcframework_name }}"
run: |
mv "build/XCFrameworks/release/${{ env.xcframework_name }}" .
zip -r "${{ env.xcframework_zip_name }}" "${{ env.xcframework_name }}"

- name: Calculate checksum
id: calculate_checksum
Expand Down Expand Up @@ -144,3 +146,55 @@ jobs:
generate_release_notes: true
token: ${{ secrets.GITHUB_TOKEN }}
files: "${{ env.xcframework_zip_name }}"

publish_to_maven:
name: Publish to maven
runs-on: ubuntu-latest
needs:
[
run_tests,
build_xcframework,
create_release_branch,
create_github_release,
]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: 11

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Publish to maven central
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PRIVATE_KEY_PASSWORD: ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }}

publish_to_cocoapods:
name: Publish to cocoadpods
needs:
[
run_tests,
build_xcframework,
create_release_branch,
create_github_release,
]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2

- name: Publish to cocoadpods
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: |
pod trunk push "${{ env.podspec_name }}"