-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (31 loc) · 1020 Bytes
/
test-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test Deploy to Vercel
on:
push:
branches:
# - test-deploy
- GGFE-208-test-deploy-브랜치-설정
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: create build.sh
run: |
touch build.sh
echo "#!/bin/sh" >> build.sh
echo "cd ../" >> build.sh
echo "mkdir output" >> build.sh
echo "cp -R ./42gg.client/* ./output" >> build.sh
echo "cp -R ./output ./42gg.client/" >> build.sh
chmod +x build.sh
- name: run build.sh
run: sh ./build.sh
- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.TEST_DEPLOY_REPO_OWNER_TOKEN }}
with:
source-directory: 'output'
destination-github-username: ${{ secrets.TEST_DEPLOY_REPO_OWNER }}
destination-repository-name: '42gg.client'
target-branch: 'test-test-deploy'