Skip to content

Commit

Permalink
chore: Create draft release for apollo-ios-codegen when publishing …
Browse files Browse the repository at this point in the history
…a release (#435)
  • Loading branch information
calvincestari authored Jul 30, 2024
1 parent 20b80e4 commit bdfffbe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- [ ] 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)
9 changes: 8 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdfffbe

Please sign in to comment.