Skip to content

Commit e16c614

Browse files
authored
[#59] πŸ”§ κΉƒν—™ μ•‘μ…˜ κ΄€λ ¨ 파일 (.yml, build.sh) μˆ˜μ • (#70)
* [#59] πŸ”§ update git-push.yml file * [#59] πŸ”§ update build.sh file
1 parent bfcfdc0 commit e16c614

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

β€Ž.github/workflows/git-push.ymlβ€Ž

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@ name: Git Push into Another Repo to Deploy to Vercel
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [dev]
66

77
jobs:
88
build:
99
runs-on: ubuntu-latest
10-
container: pandoc/latex
1110
steps:
12-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1312

1413
- name: Install mustache (to update the date)
15-
run: apk add ruby && gem install mustache
14+
run: sudo apt update && sudo apt install -y ruby && gem install mustache
1615

1716
- name: Creates output
1817
run: sh ./build.sh
@@ -27,8 +26,8 @@ jobs:
2726
destination-github-username: KingNono1030
2827
destination-repository-name: frontend_fork
2928
user-email: ${{ secrets.OFFICIAL_ACCOUNT_EMAIL }}
30-
commit-message: ${{ github.event.head_commit.message }}
31-
target-branch: main
29+
commit-message: ${{ github.event.head_commit.message || 'Auto-deployed from GitHub Actions' }}
30+
target-branch: dev
3231

3332
- name: Test Get Variable Exported by Push-to-Another-Repository
3433
run: echo $DESTINATION_CLONED_DIRECTORY

β€Žbuild.shβ€Ž

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/sh
2-
cd ../
2+
3+
# μ΅œμƒμœ„ λ””λ ‰ν† λ¦¬λ‘œ 이동
4+
cd "$(dirname "$0")"/..
5+
6+
# output 디렉토리 생성 (이미 μ‘΄μž¬ν•˜λ©΄ μ‚­μ œ ν›„ 생성)
7+
rm -rf output
38
mkdir output
9+
10+
# frontend 폴더 λ‚΄ λͺ¨λ“  νŒŒμΌμ„ output으둜 볡사
411
cp -R ./frontend/* ./output
5-
cp -R ./output ./frontend/
12+
13+
# 확인을 μœ„ν•΄ echo λ©”μ‹œμ§€ μΆ”κ°€
14+
echo "Files copied to output directory."

0 commit comments

Comments
Β (0)