Skip to content

๐Ÿ› ๋‹ค์ด๋‚˜๋ฏน ์„œ๋ธŒ์…‹ ์„œ์ฒด์˜ ๊ฒฝ๋กœ๋ฅผ ์ ˆ๋Œ€ ๊ฒฝ๋กœ๋กœ ๋ณ€๊ฒฝ #9

๐Ÿ› ๋‹ค์ด๋‚˜๋ฏน ์„œ๋ธŒ์…‹ ์„œ์ฒด์˜ ๊ฒฝ๋กœ๋ฅผ ์ ˆ๋Œ€ ๊ฒฝ๋กœ๋กœ ๋ณ€๊ฒฝ

๐Ÿ› ๋‹ค์ด๋‚˜๋ฏน ์„œ๋ธŒ์…‹ ์„œ์ฒด์˜ ๊ฒฝ๋กœ๋ฅผ ์ ˆ๋Œ€ ๊ฒฝ๋กœ๋กœ ๋ณ€๊ฒฝ #9

Workflow file for this run

name: git push into another repo to deploy to vercel
on:
push:
branches:
- main
- dev
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: Get branch name
id: branch-name
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.TOKEN }}
with:
source-directory: 'output'
destination-github-username: jihun-io
destination-repository-name: Dreamer
user-email: ${{ secrets.EMAIL }}
commit-message: ${{ github.event.commits[0].message }}
target-branch: ${{ steps.branch-name.outputs.branch }}
- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY