From 818b42a0360482ab745e5eecf08a0f603b290e19 Mon Sep 17 00:00:00 2001 From: Md Nazmul Hossain Date: Tue, 9 Dec 2025 02:50:33 -0500 Subject: [PATCH] Automated conversion of Travis CI configuration to a GitHub Actions workflow --- .github/workflows/actions.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/actions.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..61f8f69 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,29 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '21' + cache: 'gradle' + + - name: Make gradlew executable + run: chmod +x gradlew + + - name: Build + run: ./gradlew build + + - name: Publish plugin + if: success() && github.event_name == 'push' && github.repository == 'OWNER/REPO' + env: + OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} + OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + run: ./gradlew publishPlugin \ No newline at end of file