Skip to content

Commit

Permalink
fix: git-push.yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seung365 committed Dec 5, 2024
1 parent aa2b9cd commit 7ad0c03
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/git-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7ad0c03

Please sign in to comment.