Skip to content

Commit 50ff2c5

Browse files
rnorthbsideup
andauthored
Basic GitHub Action for release (#1991)
* Basic GitHub Action for release * Update following review * Update .github/workflows/gradle.yml Co-Authored-By: Sergei Egorov <[email protected]> * 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 <[email protected]>
1 parent cd7fce7 commit 50ff2c5

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Gradle Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up JDK 1.8
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 1.8
16+
- name: Verify CI check status
17+
run: [ $(curl -s https://api.github.com/repos/testcontainers/testcontainers-java/commits/$GITHUB_SHA/status | jq -r '.state') == 'success' ]
18+
- name: Release with Gradle
19+
run: ./gradlew -Pversion=$GITHUB_REF release --scan --no-daemon -i
20+
env:
21+
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
22+
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}

.travis.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,3 @@ jobs:
5858
openjdk:8-jdk-alpine \
5959
./gradlew --no-daemon testcontainers:test --tests '*GenericContainerRuleTest' --scan -i
6060
61-
- stage: deploy
62-
sudo: false
63-
services: []
64-
install: skip
65-
script: skip
66-
deploy:
67-
provider: script
68-
script: ./gradlew -Pversion=$TRAVIS_TAG release --scan --no-daemon -i
69-
on:
70-
tags: true
71-
branch: master

0 commit comments

Comments
 (0)