From acfbc36464ffbfda31635effe5b219a074e7c65a Mon Sep 17 00:00:00 2001 From: minsuhan1 Date: Thu, 25 Sep 2025 15:12:49 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=8E=A1=20Organization=20=EB=A0=88?= =?UTF-8?q?=ED=8F=AC=20main=20=EB=A8=B8=EC=A7=80=20=EC=8B=9C=20fork?= =?UTF-8?q?=ED=95=9C=20=EB=A0=88=ED=8F=AC=EC=97=90=20=EB=8F=99=EA=B8=B0?= =?UTF-8?q?=ED=99=94=ED=95=98=EB=8A=94=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/react-cicd.yml | 35 ++++++++++++++++++++++++++++++++ frontend/build.sh | 5 +++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/react-cicd.yml create mode 100644 frontend/build.sh diff --git a/.github/workflows/react-cicd.yml b/.github/workflows/react-cicd.yml new file mode 100644 index 0000000..95c0653 --- /dev/null +++ b/.github/workflows/react-cicd.yml @@ -0,0 +1,35 @@ +name: git push into another repo to deploy to vercel + +on: + pull_request: + types: [closed] + branches: + - main + paths: + - "frontend/**" + - ".github/workflows/react-cicd.yml" + +jobs: + build: + runs-on: ubuntu-latest + container: pandoc/latex + steps: + - uses: actions/checkout@v4 + - name: Install mustache (to update the date) + run: apk add ruby && gem install mustache + - name: creates output + run: sh ./build.sh + - name: Pushes to another repository + id: push_directory + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }} + with: + source-directory: "output" + destination-github-username: minsuhan1 + destination-repository-name: EVolution + user-email: ${{ secrets.EMAIL }} + commit-message: ${{ github.event.commits[0].message }} + target-branch: main + - name: Test get variable exported by push-to-another-repository + run: echo $DESTINATION_CLONED_DIRECTORY diff --git a/frontend/build.sh b/frontend/build.sh new file mode 100644 index 0000000..59594ff --- /dev/null +++ b/frontend/build.sh @@ -0,0 +1,5 @@ +#!/bin/sh +cd ../ +mkdir output +cp -R ./EVolution/frontend/* ./output +cp -R ./output ./EVolution/frontend/ \ No newline at end of file