[feat] 초기세팅 #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy | |
| on: | |
| push: | |
| branches: ["main"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: pandoc/latex | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: creates output | |
| run: sh ./build.sh | |
| - name: Pushes to origin 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: sem201 #또는 사용할 깃허브 유저이름 | |
| destination-repository-name: #[repo 이름] | |
| user-email: ${{secrets.EMAIL}} # 깃허브 시크릿에 EMAIL값으로 받기 | |
| commit-message: "배포 🐱🏍" | |
| - name: Test get variable exported by push-to-another-repository | |
| run: echo $DESTINATION_CLONED_DIRECTORY |