[Feat] [GGFE-208] actions 수정 #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |