Skip to content

Commit

Permalink
chore: actions 파일 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonjerry authored Oct 3, 2023
1 parent 3194b55 commit ce7888a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/MMA-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: MMA prod Ci/Cd

on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
Expand Down Expand Up @@ -44,16 +48,16 @@ jobs:

steps:
- name: Remove old jar file
run: rm -rf /home/pi/mma/*.jar
run: rm -rf /home/ubuntu/mma/*.jar

- name: Download a Build Artifact
uses: actions/[email protected]
with:
name: mma.jar
path: /home/pi/mma
path: /home/ubuntu/mma

- name: Add Permission
run: chmod +x /home/pi/mma/*.jar
run: chmod +x /home/ubuntu/mma/*.jar

- name: Run sh
run: sudo /home/pi/mma/run.sh
run: sudo /home/ubuntu/mma/run.sh

0 comments on commit ce7888a

Please sign in to comment.