Skip to content

Commit

Permalink
πŸ”— :: μžλ™ν™”
Browse files Browse the repository at this point in the history
πŸ”— :: μžλ™ν™”
  • Loading branch information
HongSJae committed Mar 29, 2024
2 parents a94af62 + 3974b06 commit 7da7efd
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/MoveVersionToMainBranch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Move version to main branch

on:
release:
types: [published]

jobs:
deploy:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: git merge to main
run: |
git config --global user.name 'Team return'
git config --global user.email '[email protected]'
git config pull.rebase false
git checkout -t origin/main
echo $(git merge -Xtheirs origin/release -m "πŸš€ :: Deploy version ${{ env.RELEASE_VERSION }} to AppStore")
git push
27 changes: 27 additions & 0 deletions .github/workflows/MoveVersionToReleaseBranch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Move version to release branch

on:
push:
tags:
- '*'

jobs:
deploy:
runs-on: macOS-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: git merge to release
run: |
git config --global user.name 'Team return'
git config --global user.email '[email protected]'
git config pull.rebase false
git checkout -t origin/release
echo $(git merge -Xtheirs origin/develop)
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${{ github.ref_name }}" Projects/App/Support/Info.plist
git add -A
git commit -m "πŸš€ :: Deploy version ${{ github.ref_name }} to testflight"
git push

0 comments on commit 7da7efd

Please sign in to comment.