Skip to content

Commit 57a1abb

Browse files
committed
feat: 배포 설정 추가
1 parent b70d484 commit 57a1abb

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/vercelDeploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Synchronize to forked repo
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
sync:
9+
name: Sync forked repo
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout main
14+
uses: actions/checkout@v4
15+
with:
16+
token: ${{ secrets.FORKED_REPO_TOKEN }}
17+
fetch-depth: 0
18+
ref: main
19+
20+
- name: Add remote-url
21+
run: |
22+
git remote add forked-repo https://pepperdad:${{ secrets.FORKED_REPO_TOKEN }}@github.com/pepperdad/sopkathon-client
23+
git config user.name pepperdad
24+
git config user.email [email protected]
25+
26+
- name: Push changes to forked-repo
27+
run: |
28+
git push -f forked-repo main
29+
30+
- name: Clean up
31+
run: |
32+
git remote remove forked-repo

0 commit comments

Comments
 (0)