Skip to content

Commit 7eac3fd

Browse files
committed
Step#5: Prepare Release process
1 parent 8af80c9 commit 7eac3fd

File tree

4 files changed

+55
-34
lines changed

4 files changed

+55
-34
lines changed

.github/workflows/ci-release.yml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,40 @@ on:
66
- RELEASE-*
77

88
jobs:
9-
publish-release-bintray:
9+
publish-release-sonatype:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Get the version
14-
id: get_version
15-
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d '-' -f 2)
16-
- uses: actions/setup-java@v1
13+
14+
- name: Setup java
15+
uses: actions/setup-java@v1
1716
with:
1817
java-version: 11
19-
- name: Release to Bintray
20-
uses: eskatos/gradle-command-action@v1
18+
19+
- name: Setup Gradle
20+
uses: gradle/gradle-build-action@v2
2121
with:
22-
gradle-version: 7.5
23-
arguments: test bintrayUpload # FIXME!!
24-
env:
25-
BINTRAY_USER: ${{secrets.BINTRAY_USER}}
26-
BINTRAY_KEY: ${{secrets.BINTRAY_KEY}}
27-
- name: Creates a Release in Github
22+
gradle-version: 7.4
23+
24+
- name: Get Project version
25+
id: get_version
26+
run: echo ::set-output name=VERSION::$(gradle properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}')
27+
28+
- name: Publish Release to Sonatype
29+
with:
30+
gradle-version: 7.4
31+
uses: gradle/gradle-build-action@v2
32+
arguments: assemble publish -PossrhUsername=${{secrets.SONATYPE_NEXUS_USERNAME}} -PossrhPassword=${{secrets.SONATYPE_NEXUS_PASSWORD}}
33+
34+
- name: Create Release in Github
2835
uses: actions/create-release@latest
2936
env:
3037
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
3138
with:
3239
tag_name: ${{ steps.get_version.outputs.VERSION }}
3340
release_name: ${{ steps.get_version.outputs.VERSION }}
3441
body: |
35-
Available in Bintray/Sonatype repositories under:
42+
Available in Sonatype SNAPSHOTs repository under:
3643
`io.reactiverse:aws-sdk:${{ steps.get_version.outputs.VERSION }}`
3744
draft: false
3845
prerelease: false
39-

.github/workflows/ci-snapshot.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,28 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Get the version
13-
id: get_version
14-
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d '-' -f 2)
15-
- uses: actions/setup-java@v1
12+
13+
- name: Setup java
14+
uses: actions/setup-java@v1
1615
with:
1716
java-version: 11
18-
- uses: eskatos/gradle-command-action@v1
17+
18+
- name: Setup Gradle
19+
uses: gradle/gradle-build-action@v2
1920
with:
2021
gradle-version: 7.4
22+
23+
- name: Get Project version
24+
id: get_version
25+
run: echo ::set-output name=VERSION::$(gradle properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}')
26+
27+
- name: Publish Release to Sonatype
28+
with:
29+
gradle-version: 7.4
30+
uses: gradle/gradle-build-action@v2
2131
arguments: assemble publish -PossrhUsername=${{secrets.SONATYPE_NEXUS_USERNAME}} -PossrhPassword=${{secrets.SONATYPE_NEXUS_PASSWORD}}
22-
- name: Create Snapshot Release in Github
32+
33+
- name: Create Release in Github
2334
uses: actions/create-release@latest
2435
env:
2536
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token

.github/workflows/ci-test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
java: [ 8, 11 ]
10+
java: [ 8, 11, 17 ]
1111
name: "Run tests with JDK ${{ matrix.java }}"
1212
steps:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-java@v1
1515
with:
1616
java-version: ${{ matrix.java }}
17+
1718
- name: Pre-Pull localstack image
18-
run: "docker pull localstack/localstack:0.10.2"
19-
- uses: eskatos/gradle-command-action@v1
19+
run: "docker pull localstack/localstack:0.2.20"
20+
21+
22+
- uses: gradle/gradle-build-action@v2
2023
with:
21-
gradle-version: 6.5
24+
gradle-version: 7.4
2225
arguments: test -Dtests.integration=localstack

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ Artifacts are published [here](https://search.maven.org/artifact/io.reactiverse/
1010

1111
## Version compatibility matrix
1212

13-
| Project | Vert.x | AWS sdk |
14-
| ------- | ------ | ------- |
15-
| 1.0.0 | 4.0.0 | 2.15.45 |
16-
| 0.7.0 | 3.9.4 | 2.15.23 |
17-
| 0.6.0 | 3.9.2 | 2.14.7 |
18-
| 0.5.1 | 3.9.2 | 2.13.6 |
19-
| 0.5.0 | 3.9.0 | 2.12.0 |
20-
| 0.4.0 | 3.8.3 | 2.10.16 |
21-
| 0.3.0 | 3.8.1 | 2.7.8 |
13+
| Project | Vert.x | AWS sdk |
14+
|---------|--------|----------|
15+
| 1.1.0 | 4.2.5 | 2.17.129 |
16+
| 1.0.0 | 4.0.0 | 2.15.45 |
17+
| 0.7.0 | 3.9.4 | 2.15.23 |
18+
| 0.6.0 | 3.9.2 | 2.14.7 |
19+
| 0.5.1 | 3.9.2 | 2.13.6 |
20+
| 0.5.0 | 3.9.0 | 2.12.0 |
21+
| 0.4.0 | 3.8.3 | 2.10.16 |
22+
| 0.3.0 | 3.8.1 | 2.7.8 |
2223

2324
## Documentation
2425

0 commit comments

Comments
 (0)