diff --git a/.github/workflows/gradle-release.yml b/.github/workflows/gradle-release.yml new file mode 100644 index 00000000000..ca823536fcb --- /dev/null +++ b/.github/workflows/gradle-release.yml @@ -0,0 +1,22 @@ +name: Gradle Release + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Verify CI check status + run: [ $(curl -s https://api.github.com/repos/testcontainers/testcontainers-java/commits/$GITHUB_SHA/status | jq -r '.state') == 'success' ] + - name: Release with Gradle + run: ./gradlew -Pversion=$GITHUB_REF release --scan --no-daemon -i + env: + BINTRAY_USER: ${{ secrets.BINTRAY_USER }} + BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }} diff --git a/.travis.yml b/.travis.yml index eda26dc69af..6e07925db3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,14 +58,3 @@ jobs: openjdk:8-jdk-alpine \ ./gradlew --no-daemon testcontainers:test --tests '*GenericContainerRuleTest' --scan -i - - stage: deploy - sudo: false - services: [] - install: skip - script: skip - deploy: - provider: script - script: ./gradlew -Pversion=$TRAVIS_TAG release --scan --no-daemon -i - on: - tags: true - branch: master