Skip to content

Commit

Permalink
Merge pull request #63 from JNU-econovation/feature/#62_깃허브액션
Browse files Browse the repository at this point in the history
feat: 깃헙 액션 구현
  • Loading branch information
smb0123 authored Jul 31, 2024
2 parents 876ba34 + 2474a99 commit 19d75ce
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy

on:
push:
branches: ["develop"]

jobs:
build:
runs-on: ubuntu-latest

container: pandoc/latex

steps:
- uses: actions/checkout@v2

- 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: [smb0123]

destination-repository-name: [BuddyBridge]

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
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
cd ../
mkdir output
cp -R ./BuddyBridge_FE/* ./output
cp -R ./output ./BuddyBridge_FE/

0 comments on commit 19d75ce

Please sign in to comment.