Skip to content

Commit

Permalink
Basic GitHub Action for release (#1991)
Browse files Browse the repository at this point in the history
* Basic GitHub Action for release

* Update following review

* Update .github/workflows/gradle.yml

Co-Authored-By: Sergei Egorov <bsideup@gmail.com>

* Remove explicit check stage
(release runs without testing - should be manually verified that master branch is stable)

* Add simple shell check for whether master branch is passing CI checks

* Strip quotes

* Update .github/workflows/gradle-release.yml

Co-Authored-By: Sergei Egorov <bsideup@gmail.com>
  • Loading branch information
rnorth and bsideup authored Nov 28, 2019
1 parent cd7fce7 commit 50ff2c5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/gradle-release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
11 changes: 0 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 50ff2c5

Please sign in to comment.