-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.18 KB
/
release-new-version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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