|
|
@ -3,7 +3,7 @@ name: Java CI |
|
|
|
on: [push,workflow_dispatch] |
|
|
|
on: [push,workflow_dispatch] |
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
jobs: |
|
|
|
build: |
|
|
|
Run: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
@ -16,8 +16,11 @@ jobs: |
|
|
|
- name: Grant execute permission for gradlew |
|
|
|
- name: Grant execute permission for gradlew |
|
|
|
run: chmod +x gradlew |
|
|
|
run: chmod +x gradlew |
|
|
|
- name: Gradle wrapper |
|
|
|
- name: Gradle wrapper |
|
|
|
run: gradle wrapper |
|
|
|
run: gradle wrapper --gradle-version 7.1 |
|
|
|
- name: Build with Gradle |
|
|
|
|
|
|
|
run: ./gradlew assemble |
|
|
|
|
|
|
|
- name: Get Public IP |
|
|
|
- name: Get Public IP |
|
|
|
run: curl 'https://api.ipify.org?format=json' |
|
|
|
run: curl 'https://api.ipify.org?format=json' |
|
|
|
|
|
|
|
- name: Run with Gradle |
|
|
|
|
|
|
|
run: ./gradlew run |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|