File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
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
You canโt perform that action at this time.
0 commit comments