Skip to content

Commit

Permalink
tag 일때만 동작하도록
Browse files Browse the repository at this point in the history
  • Loading branch information
murjune committed Oct 22, 2024
1 parent 5a3132c commit 13476c3
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/Android_Release_CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Android PR Builder

on:
push:
branches: [ "an/release*" ]
tags:
- "v*.*.*"

jobs:
build:
Expand Down Expand Up @@ -90,17 +91,17 @@ jobs:
path: android/app/build/outputs/apk/release/
if-no-files-found: error

- name: Extract Version Name from Branch
shell: bash
run: |
branch_name=$(echo "${{ github.ref_name }}" | sed 's:.*/::')
version=$(echo "$branch_name" | grep -oP '\d+\.\d+\.\d+')
if [ -z "$version" ]; then
echo "No version found in branch name."
echo "version=none" >> $GITHUB_ENV
else
echo "version=v$version" >> $GITHUB_ENV
fi
# - name: Extract Version Name from Branch
# shell: bash
# run: |
# branch_name=$(echo "${{ github.ref_name }}" | sed 's:.*/::')
# version=$(echo "$branch_name" | grep -oP '\d+\.\d+\.\d+')
# if [ -z "$version" ]; then
# echo "No version found in branch name."
# echo "version=none" >> $GITHUB_ENV
# else
# echo "version=v$version" >> $GITHUB_ENV
# fi

- name: Create Github Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 13476c3

Please sign in to comment.