Skip to content

Commit 87f397f

Browse files
authored
ci: Configure Release Please GitHub workflow (#303)
1 parent e36ef35 commit 87f397f

File tree

6 files changed

+35
-4
lines changed

6 files changed

+35
-4
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

33
String repositoryName = 'iexec-sms'
44

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ plugins {
88
id 'maven-publish'
99
}
1010

11-
if (!project.hasProperty('gitBranch')) {
12-
ext.gitBranch = 'git rev-parse --abbrev-ref HEAD'.execute().text.trim()
11+
ext {
12+
gitTag = 'git tag --points-at HEAD'.execute().text.trim()
1313
}
1414

1515
allprojects {
1616
group = 'com.iexec.sms'
17-
if (gitBranch != 'main' && gitBranch != 'master' && !(gitBranch ==~ '(release|hotfix|support)/.*')) {
17+
if (gitTag.isEmpty()) {
1818
version += '-NEXT-SNAPSHOT'
1919
}
2020
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
iexecCommonVersion=9.0.0
35
iexecCommonsPocoVersion=5.0.0
46

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)