Skip to content

Commit a579cd2

Browse files
authored
ci: Configure Release Please GitHub workflow (#753)
1 parent b89ed60 commit a579cd2

File tree

6 files changed

+34
-6
lines changed

6 files changed

+34
-6
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
permissions:
7+
contents: write
8+
issues: write
9+
pull-requests: write
10+
11+
name: release-please
12+
13+
jobs:
14+
release-please:
15+
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/[email protected]
16+
secrets: inherit

.release-please-manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{".":"9.0.0"}

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@Library('[email protected]') _
1+
@Library('global-jenkins-library@support/2.7.4') _
22
buildJavaProject(
33
shouldPublishJars: true,
44
shouldPublishDockerImages: true)

build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,16 @@ plugins {
99
}
1010

1111
ext {
12+
gitTag = 'git tag --points-at HEAD'.execute().text.trim()
1213
springCloudVersion = '2023.0.5'
1314
jjwtVersion = '0.11.5'
1415
mongockVersion = '5.4.0'
1516
testContainersVersion = '1.20.4'
1617
}
1718

18-
if (!project.hasProperty('gitBranch')) {
19-
ext.gitBranch = 'git rev-parse --abbrev-ref HEAD'.execute().text.trim()
20-
}
21-
2219
allprojects {
2320
group = 'com.iexec.core'
24-
if (gitBranch != 'main' && gitBranch != 'master' && !(gitBranch ==~ '(release|hotfix|support)/.*')) {
21+
if (gitTag.isEmpty()) {
2522
version += '-NEXT-SNAPSHOT'
2623
}
2724
repositories {

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
# x-release-please-start-version
12
version=9.0.0
3+
# x-release-please-end
24
iexecCommonsPocoVersion=5.0.0
35
iexecCommonVersion=9.0.0
46
iexecBlockchainAdapterVersion=9.0.0

release-please-config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"draft-pull-request": true,
4+
"release-type": "simple",
5+
"packages": {
6+
".": {
7+
"extra-files": [
8+
"gradle.properties"
9+
]
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)