File tree Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Move version to main branch
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ deploy :
9+ runs-on : macOS-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ with :
13+ fetch-depth : 0
14+
15+ - name : Set env
16+ run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
17+
18+ - name : git merge to main
19+ run : |
20+ git config --global user.name 'Team return'
21+ git config --global user.email 'team.return@gmail.com'
22+ git config pull.rebase false
23+ git checkout -t origin/main
24+ echo $(git merge -Xtheirs origin/release -m "π :: Deploy version ${{ env.RELEASE_VERSION }} to AppStore")
25+ git push
Original file line number Diff line number Diff line change 1+ name : Move version to release branch
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+
8+ jobs :
9+ deploy :
10+ runs-on : macOS-latest
11+
12+ steps :
13+ - uses : actions/checkout@v2
14+ with :
15+ fetch-depth : 0
16+
17+ - name : git merge to release
18+ run : |
19+ git config --global user.name 'Team return'
20+ git config --global user.email 'team.return@gmail.com'
21+ git config pull.rebase false
22+ git checkout -t origin/release
23+ echo $(git merge -Xtheirs origin/develop)
24+ /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${{ github.ref_name }}" Projects/App/Support/Info.plist
25+ git add -A
26+ git commit -m "π :: Deploy version ${{ github.ref_name }} to testflight"
27+ git push
You canβt perform that action at this time.
0 commit comments