-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3194b55
commit ce7888a
Showing
1 changed file
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,10 @@ name: MMA prod Ci/Cd | |
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
@@ -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 |