From e7e5f10eb9c4fc8a9e2b59ec5a0e21d6f014d0a1 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 11 Nov 2022 23:48:15 +0100 Subject: [PATCH] Dump travis, embrace github actions --- .github/workflows/gradle-build.yml | 19 +++++++++++++++++++ .github/workflows/gradle-check.yml | 19 +++++++++++++++++++ .github/workflows/gradle-publish.yml | 27 +++++++++++++++++++++++++++ .travis.yml | 19 ------------------- 4 files changed, 65 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/gradle-build.yml create mode 100644 .github/workflows/gradle-check.yml create mode 100644 .github/workflows/gradle-publish.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml new file mode 100644 index 00000000..ebce6e14 --- /dev/null +++ b/.github/workflows/gradle-build.yml @@ -0,0 +1,19 @@ +name: Build on Push +on: + - push +jobs: + gradle: + runs-on: ubuntu-latest + steps: + - name: Checkout Commit + uses: actions/checkout@v2 + - name: Fetch Tags + run: git fetch --unshallow --tags -f + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Build Gradle + uses: eskatos/gradle-command-action@v1 + with: + arguments: check diff --git a/.github/workflows/gradle-check.yml b/.github/workflows/gradle-check.yml new file mode 100644 index 00000000..81853ef3 --- /dev/null +++ b/.github/workflows/gradle-check.yml @@ -0,0 +1,19 @@ +name: Build on Pull Request +on: + - pull_request +jobs: + gradle: + runs-on: ubuntu-latest + steps: + - name: Checkout Commit + uses: actions/checkout@v2 + - name: Fetch Tags + run: git fetch --unshallow --tags -f + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Build Gradle + uses: eskatos/gradle-command-action@v1 + with: + arguments: check diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml new file mode 100644 index 00000000..023c5904 --- /dev/null +++ b/.github/workflows/gradle-publish.yml @@ -0,0 +1,27 @@ +name: Publish +on: + push: + tags: + - '*' +jobs: + gradle: + runs-on: ubuntu-latest + steps: + - name: Checkout Commit + uses: actions/checkout@v2 + with: + submodules: recursive + - name: Fetch Tags + run: git fetch --unshallow --tags -f + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Publish Maven Jar + env: + ACCESS_KEY: ${{ secrets.ACCESS_KEY }} + SECRET_KEY: ${{ secrets.SECRET_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: eskatos/gradle-command-action@v1 + with: + arguments: build publish diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cb7be98a..00000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: java -jdk: - - openjdk8 - -jobs: - include: - - stage: init - script: ./gradlew setupCIWorkspace - - stage: check - script: ./gradlew check - - stage: publish - script: ./gradlew build publish - -stages: - - name: init - - name: check - if: type IN (pull_request) - - name: publish - if: NOT type IN (pull_request) \ No newline at end of file