Skip to content

Commit

Permalink
build: deployment.yml 파일 변경
Browse files Browse the repository at this point in the history
- release-1.0, main 브랜치 둘 다 적용
  • Loading branch information
kimsuyeon0916 committed Jul 3, 2024
1 parent 26d1be8 commit f5f509d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: git push into another repo to deploy to vercel

on:
push:
branches: [release-1.0]
branches:
- release-1.0
- main

jobs:
build:
Expand All @@ -14,6 +16,10 @@ jobs:
run: apk add ruby && gem install mustache
- name: creates output
run: sh ./build.sh
- name: Set target branch
id: set_target_branch
run: echo "::set-output name=target_branch::${{ github.ref_name }}"

- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
Expand All @@ -25,6 +31,7 @@ jobs:
destination-repository-name: MeeTeam_FrontEnd
user-email: ${{ secrets.SUYEON_GITHUB_EMAIL }}
commit-message: ${{ github.event.commits[0].message }}
target-branch: release-1.0
target-branch: ${{ steps.set_target_branch.outputs.target_branch }}

- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY

0 comments on commit f5f509d

Please sign in to comment.