diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..b1b6694 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,31 @@ +name: Java CI with Gradle +on: + push: + branches: [ master ] +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + java: ['8'] + env: + JDK_VERSION: ${{ matrix.java }} + steps: + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Run script + run: ./githubactions-build.sh + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + GIT_NAME: ${{ secrets.GIT_NAME }} + GIT_EMAIL: ${{ secrets.GIT_EMAIL }} + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ad0e98e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -cache: - directories: - - "$HOME/.gradle" -jdk: -- openjdk8 -before_script: -- rm -rf target -script: "./travis-build.sh" -env: - global: - - secure: iox7ttxoBpyeyFZMVcP7sZqoEcLdVqHOaADHV1TSLIFue4f3wWKZ+7IQI1x6WaVKUS77tHbwggsLmr9Twtc+fYbgfEUm42WyfBFCuUSgmhvap35kVI/qzhm0sNRXye711iEAk2JaV4k5xvcHOERR/GLbGEL/fcSZOqLytJIhAUM5MJipNBRBrSEQBwiecF9XtZt2FTGKdLX3ar83laQvucfNAonjQY1XjF8uGWZ3oCkLZziQCyHOe2xeW9EN6sdL2BBPaKegj9za7mMhwcba5irPs74cKax/jWIF6u+GAfZn+XnEYgLyYpjHW4MT3i9Qlg6/f9IHYgSV9hpx1v/jCMkoWcjFwd1jhKYOGyMy3KEqtDq/Mcdqck9KnLJp2jW7GBCXSSB/PjYI4rI1ETJeZLe4hQrFNfHQ2qGpDNTHBMTz9mLif+F4ISklSiYqZ0wUJlo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ZGxN+y9lWA/TAIUDtZJT/I3Vw1XZi2svFvkZGQBwQH+Tpa1jb0o/DgYL/4w420A20VnzlMzIlg5eU3SRHIoNsC+sIIarYlmv8eWWWIrVrxGGm+IESXY5qIxswqyI3a09tf+gpDICLbN2kxmMq89WlUk3C2tj18Zbhd1KEe3TAATZP+4prvQEbI+oPia4cQGf59lBtWWir2gvm8nwuiuD6dCFZQhUmxals3lo7hF49XGRg9JvCyBOE6tcfjfUVNdSAP/oYZu4KAp6F1XocY2+VsmUQPimX8eAQ4J84eL0VKLQdl7yY2q11oYdVHyxu8oeXVUox12Lil9Y5WhH8GgW/iFTexdmYbhsu+3/DU3fnonJdqmFNCBY9IP/N8ouGavyfE5/XMrQRIodFzuDxdZmaFdGRR86UyX1WB1u5oyG8t7G4cUxzy3eDueHANa9caYmYZnJ2CM6bKRTQtHHRxXB4PBPYCOphfscQgYU0dR4g972wf/IaiIRiqA8mNm1/ELOs4Q/UqRQzYIra0= diff --git a/travis-build.sh b/githubactions-build.sh similarity index 77% rename from travis-build.sh rename to githubactions-build.sh index e41a7d7..8f01fdc 100755 --- a/travis-build.sh +++ b/githubactions-build.sh @@ -3,17 +3,17 @@ set -e export EXIT_STATUS=0 -curl -O https://raw.githubusercontent.com/grails/grails-guides/master/travis/build-guide +curl -O https://raw.githubusercontent.com/grails/grails-guides/master/githubactions/build-guide chmod 777 build-guide ./build-guide || EXIT_STATUS=$? if [[ $EXIT_STATUS -ne 0 ]]; then - echo "Build failed" + echo "build-guide failed" exit $EXIT_STATUS -fi +fi -curl -O https://raw.githubusercontent.com/grails/grails-guides/master/travis/republish-guides-website.sh +curl -O https://raw.githubusercontent.com/grails/grails-guides/master/githubactions/republish-guides-website.sh chmod 777 republish-guides-website.sh ./republish-guides-website.sh || EXIT_STATUS=$?