Skip to content

Commit

Permalink
feat: Tag new release
Browse files Browse the repository at this point in the history
  • Loading branch information
timonback committed Apr 21, 2023
1 parent 47b2140 commit a15f11b
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 16 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/publish-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Publish releases
on: workflow_dispatch

permissions:
contents: write
packages: write

jobs:
Expand All @@ -29,6 +30,17 @@ jobs:
ORG_GRADLE_PROJECT_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
ORG_GRADLE_PROJECT_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}

- name: Tag version
run: |
VERSION=$(./gradlew -p springwolf-core properties | grep "version:" | awk '{print $2}')
TAG="springwolf-core-$VERSION"
git tag "$TAG"
echo "Publishing tag"
git push origin "$TAG" || true # Do not fail, if the tag already exists
env:
ORG_GRADLE_PROJECT_SNAPSHOT: false

publish-springwolf-amqp-release:
runs-on: ubuntu-latest
steps:
Expand All @@ -52,6 +64,17 @@ jobs:
ORG_GRADLE_PROJECT_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
ORG_GRADLE_PROJECT_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}

- name: Tag version
run: |
VERSION=$(./gradlew -p springwolf-plugins/springwolf-amqp-plugin properties | grep "version:" | awk '{print $2}')
TAG="springwolf-amqp-$VERSION"
git tag "$TAG"
echo "Publishing tag"
git push origin "$TAG" || true # Do not fail, if the tag already exists
env:
ORG_GRADLE_PROJECT_SNAPSHOT: false

publish-springwolf-kafka-release:
runs-on: ubuntu-latest
steps:
Expand All @@ -75,6 +98,17 @@ jobs:
ORG_GRADLE_PROJECT_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
ORG_GRADLE_PROJECT_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}

- name: Tag version
run: |
VERSION=$(./gradlew -p springwolf-plugins/springwolf-kafka-plugin properties | grep "version:" | awk '{print $2}')
TAG="springwolf-kafka-$VERSION"
git tag "$TAG"
echo "Publishing tag"
git push origin "$TAG" || true # Do not fail, if the tag already exists
env:
ORG_GRADLE_PROJECT_SNAPSHOT: false

publish-springwolf-cloud-stream-release:
runs-on: ubuntu-latest
steps:
Expand All @@ -97,3 +131,14 @@ jobs:
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD}}
ORG_GRADLE_PROJECT_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
ORG_GRADLE_PROJECT_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}

- name: Tag version
run: |
VERSION=$(./gradlew -p springwolf-plugins/springwolf-cloud-stream-plugin properties | grep "version:" | awk '{print $2}')
TAG="springwolf-cloud-stream-$VERSION"
git tag "$TAG"
echo "Publishing tag"
git push origin "$TAG" || true # Do not fail, if the tag already exists
env:
ORG_GRADLE_PROJECT_SNAPSHOT: false
28 changes: 12 additions & 16 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ The following lists describe the steps necessary to release a new version.
## springwolf-core
1. Update version number in `springwolf-core/build.gradle`
2. Run all tests (including all examples + integration)
3. Tag commit
4. Run github `Publish releases` pipeline
5. Release version in nexus
6. Update version number on website
3. Run github `Publish releases` pipeline
4. Release version in nexus
5. Update version number on website

## Plugins

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

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

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

0 comments on commit a15f11b

Please sign in to comment.