Skip to content

Commit da195fd

Browse files
committed
fix: remove cpina action and simplify deploy workflow
1 parent 33bf4fa commit da195fd

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

.github/workflows/github-actions.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -6,52 +6,11 @@ on:
66
- main
77
- develop
88

9-
paths-ignore:
10-
- 'output/**'
11-
129
jobs:
1310
build:
1411
runs-on: ubuntu-latest
1512
steps:
1613
- uses: actions/checkout@v2
17-
- name: Install Git
18-
run: |
19-
sudo apt-get update && sudo apt-get install -y git
20-
- name: creates output
21-
run: sh ./build.sh
22-
23-
# 프로덕선 환경(main) 배포
24-
- name: Pushes to production repository
25-
id: push_directory_prod
26-
if: github.ref == 'refs/heads/main' && github.actor != 'github-actions'
27-
uses: cpina/github-action-push-to-another-repository@main
28-
env:
29-
API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }}
30-
with:
31-
source-directory: 'output'
32-
destination-github-username: 'ljh130334'
33-
destination-repository-name: '16th-team3-FE'
34-
user-email: ${{ secrets.GIT_EMAIL }}
35-
commit-message: ${{ github.event.head_commit.message || 'Auto commit [skip ci]' }}
36-
target-branch: main
37-
38-
# 개발 환경(develop) 배포
39-
- name: Pushes to development repository
40-
id: push_directory_dev
41-
if: github.ref == 'refs/heads/develop' && github.actor != 'github-actions'
42-
uses: cpina/github-action-push-to-another-repository@main
43-
env:
44-
API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }}
45-
with:
46-
source-directory: 'output'
47-
destination-github-username: 'ljh130334'
48-
destination-repository-name: '16th-team3-FE'
49-
user-email: ${{ secrets.GIT_EMAIL }}
50-
commit-message: ${{ github.event.head_commit.message || 'Dev:Auto commit [skip ci]' }}
51-
target-branch: develop
52-
53-
- name: Test get variable exported by push-to-another-repository
54-
run: echo $DESTINATION_CLONED_DIRECTORY
5514

5615
# main 브랜치 푸시
5716
- name: Push to forked repository (main)

0 commit comments

Comments
 (0)