diff --git a/.github/workflows/ios-release.yml b/.github/workflows/ios-release.yml index b23cdcd26..b0b64ed78 100644 --- a/.github/workflows/ios-release.yml +++ b/.github/workflows/ios-release.yml @@ -177,21 +177,6 @@ jobs: private-key: ${{ secrets.MAPLIBRE_NATIVE_BOT_PRIVATE_KEY }} owner: ${{ github.repository_owner }} - - name: Release (Swift Package Index) - run: | - echo "::add-mask::${{ steps.generate_token.outputs.token }}" - release_workflow_id=81221759 # id of release.yml - curl -L \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -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":{ - "changelog_url": "https://maplibre-native.s3.eu-central-1.amazonaws.com/changelogs/ios-${{ env.version }}.md", - "version":"${{ env.version }}", - "download_url": "https://github.com/maplibre/maplibre-native/releases/download/ios-v${{ env.version }}/MapLibre.dynamic.xcframework.zip"}}' - - run: npm install working-directory: . @@ -208,6 +193,21 @@ jobs: name: ios-v${{ env.version }} draft: false + - name: Release (Swift Package Index) + run: | + echo "::add-mask::${{ steps.generate_token.outputs.token }}" + release_workflow_id=81221759 # id of release.yml + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -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":{ + "changelog_url": "https://maplibre-native.s3.eu-central-1.amazonaws.com/changelogs/ios-${{ env.version }}.md", + "version":"${{ env.version }}", + "download_url": "https://github.com/maplibre/maplibre-native/releases/download/ios-v${{ env.version }}/MapLibre.dynamic.xcframework.zip"}}' + - name: Write release notifications if: github.repository_owner == 'maplibre' env: