From c4a8725e6ebe6c86b677c57900edba0d31667ad6 Mon Sep 17 00:00:00 2001 From: sayyyho <323psh@naver.com> Date: Wed, 30 Oct 2024 15:34:49 +0900 Subject: [PATCH] [Docs] - setting CD --- .github/workflows/deploy.yaml | 32 ++++++++++++++++++++++++++++++++ build.sh | 9 +++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/deploy.yaml create mode 100644 build.sh diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..6d8bd14 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,32 @@ +name: Deploy + +on: + push: + branches: ["main"] + +jobs: + build: + runs-on: ubuntu-latest + container: + image: pandoc/latex + + steps: + - uses: actions/checkout@v3 + + - name: creates output + run: sh ./build.sh + + - name: Pushes to origin 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: sayyyho + destination-repository-name: F4_Front + user-email: "323psh@naver.com" + commit-message: "배포" + + - name: Test get variable exported by push-to-another-repository + run: echo $DESTINATION_CLONED_DIRECTORY diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..898c089 --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +!/bin/sh + +cd ../ + +mkdir output + +cp -R ./F4_Front/* ./output + +cp -R ./output ./F4_Front \ No newline at end of file