-
Notifications
You must be signed in to change notification settings - Fork 1
/
release.yaml
38 lines (38 loc) · 1.24 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
pipeline:
name: release
jobs:
- name: release
enabled: true
steps:
- name: change version
run: |
./mvnw versions:set -DnewVersion="${{ release }}" -DprocessAllModules >> /dev/null
rm -Rf $(find . -name "*versionsBackup")
- name: rebuild
run: ./mvnw clean package
- name: package
run: ./pipeliner package.yaml
- name: commit version
run: |
git add -u
git commit -s -m "release-${{ release }}"
- name: tag version
run: |
git tag "${{ release }}"
git push --tags
- name: checkout & push release branch
run: |
git checkout -b "release-${{ release }}"
git push --set-upstream origin "release-${{ release }}"
- name: checkout main
run: git checkout main
- name: change version
run: |
./mvnw versions:set -DnewVersion="${{ release }}-post" -DprocessAllModules >> /dev/null
rm -Rf $(find . -name "*versionsBackup")
- name: commit version
run: |
git add -u
git commit -s -m "Prepare for development"
- name: git push
run: git push