Skip to content

Commit

Permalink
[Docs] - setting CD
Browse files Browse the repository at this point in the history
  • Loading branch information
sayyyho committed Oct 30, 2024
1 parent 6f7d1e3 commit c4a8725
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -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: "[email protected]"
commit-message: "배포"

- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY
9 changes: 9 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
!/bin/sh

cd ../

mkdir output

cp -R ./F4_Front/* ./output

cp -R ./output ./F4_Front

0 comments on commit c4a8725

Please sign in to comment.