Skip to content

Commit 5078e4f

Browse files
committed
๐Ÿ”ง chore: ๋ฐฐํฌ ์„ค์ •ํŒŒ์ผ
1 parent 07c5fc8 commit 5078e4f

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Push to another repo to deploy to Vercel
2+
3+
on:
4+
push:
5+
branches: [main, feature/moviedbapi]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout the repository
13+
uses: actions/checkout@v2
14+
15+
- name: Install dependencies (if needed for build script)
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y ruby
19+
gem install mustache
20+
21+
- name: Run build script
22+
run: sh ./build.sh
23+
24+
- name: Push output to another repository
25+
uses: cpina/github-action-push-to-another-repository@main
26+
env:
27+
API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }}
28+
with:
29+
source-directory: 'output'
30+
destination-github-username: 'hiwon-lee' # <- ์—ฌ๊ธฐ์— ๋Œ€์ƒ ์‚ฌ์šฉ์ž ์ด๋ฆ„
31+
destination-repository-name: 'next-netflix-20th' # <- ์—ฌ๊ธฐ์— ๋Œ€์ƒ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ด๋ฆ„
32+
user-email: ${{ secrets.GIT_EMAIL }}
33+
user-name: ${{ secrets.GIT_USERNAME }}
34+
commit-message: ${{ github.event.commits[0].message }}
35+
target-branch: main
36+
37+
- name: Test the output directory variable
38+
run: echo $DESTINATION_CLONED_DIRECTORY

0 commit comments

Comments
ย (0)