Skip to content

Commit

Permalink
Merge pull request #5 from TEAM-CLIP/4-deploy-temp
Browse files Browse the repository at this point in the history
feat: 임시 자동 배포환경 구성 (#4)
  • Loading branch information
NeoSelf1 authored Aug 22, 2024
2 parents eea4fa2 + 932b242 commit 70ef214
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/git-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: git push into another repo to deploy to vercel

on:
push:
branches: [1.0.0]

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.MVP_DEPLOY_TEMP }}
with:
source-directory: 'output'
destination-github-username: Neoself1
destination-repository-name: chiksnap-deployment
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
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// ./build.sh

#!/bin/sh
cd ../
mkdir output
cp -R ./MVP/* ./output
cp -R ./output ./MVP/

0 comments on commit 70ef214

Please sign in to comment.