github action

master
pan 4 years ago
parent 6a657d72c4
commit e04b18fc5c
  1. 11
      .github/workflows/blank.yml

@ -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

Loading…
Cancel
Save