Add changelog to iOS releases (#1996)
This commit is contained in:
12
.github/workflows/ios-ci.yml
vendored
12
.github/workflows/ios-ci.yml
vendored
@@ -215,6 +215,11 @@ jobs:
|
||||
if: env.make_release && !github.event.inputs.release
|
||||
run: echo version="$(cat VERSION)"-pre${{ github.sha }} >> "$GITHUB_ENV"
|
||||
|
||||
- name: Extract changelog for version
|
||||
run: |
|
||||
awk '/^##/ { p = 0 }; p == 1 { print }; $0 == "## {{ env.version }}" { p = 1 };' CHANGELOG.md > changelog_for_version.md
|
||||
cat changelog_for_version.md
|
||||
|
||||
- name: Create tag
|
||||
if: env.make_release
|
||||
run: |
|
||||
@@ -225,6 +230,7 @@ jobs:
|
||||
if: env.make_release
|
||||
run: |
|
||||
cp ${{ env.xcframework }} MapLibre.dynamic.xcframework.zip
|
||||
chmod +w MapLibre.dynamic.xcframework.zip
|
||||
zip MapLibre.dynamic.xcframework.zip LICENSE.md # add license to zip
|
||||
working-directory: .
|
||||
|
||||
@@ -237,6 +243,7 @@ jobs:
|
||||
files: MapLibre.dynamic.xcframework.zip
|
||||
tag_name: ios-v${{ env.version }}
|
||||
prerelease: ${{ !github.event.inputs.release }}
|
||||
body_path: platform/ios/changelog_for_version.md
|
||||
fail_on_unmatched_files: true
|
||||
|
||||
# needed to trigger workflow for Swift Package Index release
|
||||
@@ -259,7 +266,10 @@ jobs:
|
||||
-H "Authorization: token ${{ steps.generate_token.outputs.token }}" \
|
||||
-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":{"version":"${{ env.version }}","download_url":"${{ fromJSON(steps.github_release.outputs.assets)[0].browser_download_url }}"}}'
|
||||
-d '{"ref":"main","inputs":{ \
|
||||
"changelog": '"$(cat changelog_for_version.md)"' \
|
||||
"version":"${{ env.version }}", \
|
||||
"download_url":"${{ fromJSON(steps.github_release.outputs.assets)[0].browser_download_url }}"}}'
|
||||
|
||||
- name: Release (CocoaPods)
|
||||
shell: bash -leo pipefail {0} # so pod is found
|
||||
|
||||
Reference in New Issue
Block a user