Skip to content

Commit 7da7efd

Browse files
authored
πŸ”— :: μžλ™ν™”
πŸ”— :: μžλ™ν™”
2 parents a94af62 + 3974b06 commit 7da7efd

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

0 commit comments

Comments
Β (0)