diff --git a/.github/workflows/git-push.yml b/.github/workflows/git-push.yml index 4e94565..a144638 100644 --- a/.github/workflows/git-push.yml +++ b/.github/workflows/git-push.yml @@ -10,37 +10,21 @@ jobs: 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 directory - run: mkdir -p output # output 디렉토리가 없으면 생성 - - - name: creates output - run: sh ./build.sh # output 폴더를 생성하고 빌드 작업 수행 - - - name: Debug output directory - run: | - echo "Current directory contents:" - ls -al - echo "Build directory contents (if exists):" - ls -al build || echo "Build directory does not exist!" - echo "Output directory contents (if exists):" - ls -al output || echo "Output directory does not exist!" - + - name: creates build + 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_KEY }} with: - source-directory: 'output' # build 또는 output에 맞게 변경 + source-directory: 'build' destination-github-username: 'seung365' destination-repository-name: 'alphamail-frontend' - user-email: ${{ secrets.OFFICIAL_ACCOUNT_EMAIL }} + user-email: ${{ secrets.OFFICIAL_ACCOUNT_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