Skip to content

Commit

Permalink
refactor: remove duplicate gradle test
Browse files Browse the repository at this point in the history
fix: fix nohub continuous deployment script
  • Loading branch information
thisisWooyeol committed Nov 28, 2023
1 parent 3226e78 commit 5636f13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ jobs:
- name: Add API_BASE_URL to local.properties
run: echo "API_BASE_URL= \"${{ secrets.API_BASE_URL }}\"" >> local.properties
- name: Build with Gradle
run: ./gradlew clean build
- name: Test with Gradle
run: ./gradlew test
run: ./gradlew clean build
2 changes: 0 additions & 2 deletions .github/workflows/springboot-on-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,3 @@ jobs:
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build
- name: Test with Gradle
run: ./gradlew test
8 changes: 3 additions & 5 deletions .github/workflows/springboot-on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ jobs:
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build
- name: Test with Gradle
run: ./gradlew test

# Setup SSH
- name: Set up SSH agent with private key
Expand All @@ -52,7 +50,7 @@ jobs:
- name: Execute remote commands
run: |
ssh -v ${{ secrets.SPRINGBOOT_USERNAME }}@${{ secrets.SPRINGBOOT_HOST_DNS }} \
"sudo lsof -t -i tcp:8080 | sargs sudo kill -9 || true && \
cd ${{ secrets.SPRINGBOOT_ROOT_DIR }} && pwd && \
sudo nohup /usr/bin/java -jar ${{ secrets.SPRINGBOOT_TARGET_DIR }}/*.jar \
"kill $(pgrep -f springboot-0.0.1-SNAPSHOT.jar) || true && \
cd ${{ secrets.SPRINGBOOT_ROOT_DIR }} && \
sudo nohup /usr/bin/java -jar ${{ secrets.SPRINGBOOT_TARGET_DIR }}/*.jar & \
> ${{ secrets.SPRINGBOOT_ROOT_DIR }}/app.log 2>&1 &"

0 comments on commit 5636f13

Please sign in to comment.