From 0915406fb9ea65a0cbe5c6e31d579bc2ae740cdb Mon Sep 17 00:00:00 2001 From: Calvin Cestari Date: Fri, 19 Jul 2024 15:14:49 -0700 Subject: [PATCH 1/2] Create draft release for apollo-ios-codegen on publish --- .github/workflows/publish-release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 5229fff27..370a6ab8a 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -62,12 +62,19 @@ jobs: git push --tags # Create Draft Release on GitHub with tag of version - - name: Create Draft Release + - name: Create Draft Release (`apollo-ios`) shell: bash run: | gh release create ${{ env.RELEASE_VERSION }} 'apollo-ios/CLI/apollo-ios-cli.tar.gz#apollo-ios-cli.tar.gz' -d --repo "apollographql/apollo-ios" -t "${{ env.RELEASE_VERSION }}" env: GH_TOKEN: ${{ secrets.APOLLO_IOS_PAT }} + + - name: Create Draft Release (`apollo-ios-codegen`) + shell: bash + run: | + gh release create ${{ env.RELEASE_VERSION }} -d --repo "apollographql/apollo-ios-codegen" -t "${{ env.RELEASE_VERSION }}" + env: + GH_TOKEN: ${{ secrets.APOLLO_IOS_PAT }} # Trigger "Release New Version" workflow in the apollo-ios-xcframework repo - name: Dispatch apollo-ios-xcframework From 0cc82d85c6bf2e561b4458188ca71521a3c29428 Mon Sep 17 00:00:00 2001 From: Calvin Cestari Date: Fri, 19 Jul 2024 15:22:47 -0700 Subject: [PATCH 2/2] Update release PR notes --- .github/workflows/create-release-pr.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 607231abe..70fd0d21b 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -67,4 +67,6 @@ jobs: - [ ] Update [CHANGELOG.md](https://github.com/apollographql/apollo-ios/blob/main/CHANGELOG.md) with all relevant changes since the prior version. _Please include PR numbers and mention contributors for external PR submissions._ #### Things to do as part of releasing - - [ ] Update and publish the draft release created by CI using the latest [CHANGELOG.md](https://github.com/apollographql/apollo-ios/blob/main/CHANGELOG.md) contents \ No newline at end of file + - [ ] Run the []'Publish Release' workflow](https://github.com/apollographql/apollo-ios-dev/actions/workflows/publish-release.yml) in apollo-ios-dev + - [ ] Update and publish the [draft release in apollo-ios](https://github.com/apollographql/apollo-ios/releases) created by CI using the latest [CHANGELOG.md](https://github.com/apollographql/apollo-ios/blob/main/CHANGELOG.md) contents + - [ ] Update and publish the [draft release in apollo-ios-codegen](https://github.com/apollographql/apollo-ios-codegen/releases) created by CI (copy and paste the previous release contents and update the version number and link)