diff --git a/.github/workflows/ios-ci.yml b/.github/workflows/ios-ci.yml index b0c008c22..0425ac135 100644 --- a/.github/workflows/ios-ci.yml +++ b/.github/workflows/ios-ci.yml @@ -210,7 +210,7 @@ jobs: if: github.event.inputs.release == 'full' run: | echo version="$(head VERSION)" >> "$GITHUB_ENV" - echo changelog_version_heading="## {{ env.version }}" >> "$GITHUB_ENV" + echo changelog_version_heading="## ${{ env.version }}" >> "$GITHUB_ENV" - name: Get version (pre-release) if: github.event.inputs.release == 'pre' @@ -221,9 +221,13 @@ jobs: - name: Extract changelog for version if: env.make_release run: | - awk '/^##/ { p = 0 }; p == 1 { print }; $0 == "{{ env.changelog_version_heading }}" { p = 1 };' CHANGELOG.md > changelog_for_version.md + awk '/^##/ { p = 0 }; p == 1 { print }; $0 == "${{ env.changelog_version_heading }}" { p = 1 };' CHANGELOG.md > changelog_for_version.md cat changelog_for_version.md + - name: Upload changelog to S3 + if: env.make_release + run: aws s3 cp changelog_for_version.md s3://maplibre-native/changelogs/ios-${{ env.version }}.md + - name: Create tag if: env.make_release run: | @@ -271,7 +275,7 @@ jobs: -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/maplibre/maplibre-gl-native-distribution/actions/workflows/$release_workflow_id/dispatches \ -d '{"ref":"main","inputs":{ \ - "changelog": "'"$(cat changelog_for_version.md)"'", \ + "changelog_url": "https://maplibre-native.s3.eu-central-1.amazonaws.com/changelogs/ios-${{ env.version }}.md", \ "version":"${{ env.version }}", \ "download_url":"${{ fromJSON(steps.github_release.outputs.assets)[0].browser_download_url }}"}}' diff --git a/platform/ios/scripts/docc.sh b/platform/ios/scripts/docc.sh index 9a1da58cc..c89a74728 100755 --- a/platform/ios/scripts/docc.sh +++ b/platform/ios/scripts/docc.sh @@ -24,7 +24,7 @@ rm -rf "$build_dir"/symbol-graphs rm -rf "$build_dir"/headers/MapLibre rm -rf "$build_dir"/MapLibre.xcframework -mkdir "$build_dir"/symbol-graphs +mkdir -p "$build_dir"/symbol-graphs mkdir -p "$build_dir"/headers/MapLibre # unzip built XCFramework in build dir