Skip to content

Commit a15f11b

Browse files
committed
feat: Tag new release
1 parent 47b2140 commit a15f11b

File tree

2 files changed

+57
-16
lines changed

2 files changed

+57
-16
lines changed

.github/workflows/publish-releases.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Publish releases
33
on: workflow_dispatch
44

55
permissions:
6+
contents: write
67
packages: write
78

89
jobs:
@@ -29,6 +30,17 @@ jobs:
2930
ORG_GRADLE_PROJECT_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
3031
ORG_GRADLE_PROJECT_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
3132

33+
- name: Tag version
34+
run: |
35+
VERSION=$(./gradlew -p springwolf-core properties | grep "version:" | awk '{print $2}')
36+
TAG="springwolf-core-$VERSION"
37+
git tag "$TAG"
38+
39+
echo "Publishing tag"
40+
git push origin "$TAG" || true # Do not fail, if the tag already exists
41+
env:
42+
ORG_GRADLE_PROJECT_SNAPSHOT: false
43+
3244
publish-springwolf-amqp-release:
3345
runs-on: ubuntu-latest
3446
steps:
@@ -52,6 +64,17 @@ jobs:
5264
ORG_GRADLE_PROJECT_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
5365
ORG_GRADLE_PROJECT_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
5466

67+
- name: Tag version
68+
run: |
69+
VERSION=$(./gradlew -p springwolf-plugins/springwolf-amqp-plugin properties | grep "version:" | awk '{print $2}')
70+
TAG="springwolf-amqp-$VERSION"
71+
git tag "$TAG"
72+
73+
echo "Publishing tag"
74+
git push origin "$TAG" || true # Do not fail, if the tag already exists
75+
env:
76+
ORG_GRADLE_PROJECT_SNAPSHOT: false
77+
5578
publish-springwolf-kafka-release:
5679
runs-on: ubuntu-latest
5780
steps:
@@ -75,6 +98,17 @@ jobs:
7598
ORG_GRADLE_PROJECT_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
7699
ORG_GRADLE_PROJECT_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
77100

101+
- name: Tag version
102+
run: |
103+
VERSION=$(./gradlew -p springwolf-plugins/springwolf-kafka-plugin properties | grep "version:" | awk '{print $2}')
104+
TAG="springwolf-kafka-$VERSION"
105+
git tag "$TAG"
106+
107+
echo "Publishing tag"
108+
git push origin "$TAG" || true # Do not fail, if the tag already exists
109+
env:
110+
ORG_GRADLE_PROJECT_SNAPSHOT: false
111+
78112
publish-springwolf-cloud-stream-release:
79113
runs-on: ubuntu-latest
80114
steps:
@@ -97,3 +131,14 @@ jobs:
97131
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD}}
98132
ORG_GRADLE_PROJECT_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
99133
ORG_GRADLE_PROJECT_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
134+
135+
- name: Tag version
136+
run: |
137+
VERSION=$(./gradlew -p springwolf-plugins/springwolf-cloud-stream-plugin properties | grep "version:" | awk '{print $2}')
138+
TAG="springwolf-cloud-stream-$VERSION"
139+
git tag "$TAG"
140+
141+
echo "Publishing tag"
142+
git push origin "$TAG" || true # Do not fail, if the tag already exists
143+
env:
144+
ORG_GRADLE_PROJECT_SNAPSHOT: false

RELEASING.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ The following lists describe the steps necessary to release a new version.
55
## springwolf-core
66
1. Update version number in `springwolf-core/build.gradle`
77
2. Run all tests (including all examples + integration)
8-
3. Tag commit
9-
4. Run github `Publish releases` pipeline
10-
5. Release version in nexus
11-
6. Update version number on website
8+
3. Run github `Publish releases` pipeline
9+
4. Release version in nexus
10+
5. Update version number on website
1211

1312
## Plugins
1413

@@ -20,10 +19,9 @@ The following lists describe the steps necessary to release a new version.
2019
4. `springwolf-examples/springwolf-amqp-example/docker-compose.yml`
2120
2. Run all tests (including all examples + integration)
2221
3. Run docker compose and manually test ui
23-
4. Tag commit
24-
5. Run github `Publish releases` pipeline
25-
6. Release version in nexus
26-
7. Update version number on website
22+
4. Run github `Publish releases` pipeline
23+
5. Release version in nexus
24+
6. Update version number on website
2725

2826
### springwolf-cloud-stream
2927
1. Update version number in
@@ -32,10 +30,9 @@ The following lists describe the steps necessary to release a new version.
3230
3. `springwolf-examples/springwolf-cloud-stream-example/docker-compose.yml`
3331
2. Run all tests (including all examples + integration)
3432
3. Run docker compose and manually test ui
35-
4. Tag commit
36-
5. Run github `Publish releases` pipeline
37-
6. Release version in nexus
38-
7. Update version number on website
33+
4. Run github `Publish releases` pipeline
34+
5. Release version in nexus
35+
6. Update version number on website
3936

4037
### springwolf-kafka
4138
1. Update version number in
@@ -45,7 +42,6 @@ The following lists describe the steps necessary to release a new version.
4542
4. `springwolf-examples/springwolf-kafka-example/docker-compose.yml`
4643
2. Run all tests (including all examples + integration)
4744
3. Run docker compose and manually test ui
48-
4. Tag commit
49-
5. Run github `Publish releases` pipeline
50-
6. Release version in nexus
51-
7. Update version number on website
45+
4. Run github `Publish releases` pipeline
46+
5. Release version in nexus
47+
6. Update version number on website

0 commit comments

Comments
 (0)