Release New Version #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Release New Version" | |
on: | |
workflow_dispatch: | |
inputs: | |
remoteRef: | |
description: 'Branch or Tag to Pull' | |
required: true | |
jobs: | |
create-release: | |
runs-on: macos-13 | |
name: Create Release | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
fetch-depth: 0 | |
- name: Setup SSH Keys | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: | | |
${{ secrets.APOLLO_IOS_DEPLOY_KEY }} | |
${{ secrets.APOLLO_IOS_XCFRAMEWORK_DEPLOY_KEY }} | |
- name: Update Subtree | |
shell: bash | |
run: | | |
git subtree pull -P apollo-ios [email protected]:apollographql/apollo-ios.git ${{ github.event.inputs.remoteRef }} -m "Pulling '${{ github.event.inputs.remoteRef }}' from apollo-ios for release." | |
- name: Run Tuist Generation | |
uses: ./.github/actions/run-tuist-generation | |
- name: Commit and Push Changes | |
shell: bash | |
run: | | |
git add -A | |
git commit --allow-empty -m "Releasing new version based on '${{ github.event.inputs.remoteRef }}' of apollo-ios repo." | |
git push | |
git tag ${{ github.event.inputs.remoteRef }} | |
git push --tags |