Skip to content
This repository was archived by the owner on Jun 18, 2023. It is now read-only.

Commit 7d2d40b

Browse files
authored
Merge pull request #40 from sam0r040/feat/release-preparation
Feat/release preparation
2 parents a6a6d29 + d29e903 commit 7d2d40b

File tree

10 files changed

+533
-304
lines changed

10 files changed

+533
-304
lines changed

.github/workflows/publish-release.yml

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

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

89
jobs:
@@ -11,14 +12,15 @@ jobs:
1112
steps:
1213
- uses: actions/checkout@v2
1314

14-
- name: Set up JDK 1.8
15-
uses: actions/setup-java@v1
15+
- name: Set up JDK
16+
uses: actions/setup-java@v3
1617
with:
17-
java-version: 1.8
18+
distribution: 'temurin'
19+
java-version: '17'
1820

1921
- name: Setup Gradle
2022
uses: gradle/gradle-build-action@v2
21-
23+
2224
- name: Publish package
2325
run: ./gradlew publish
2426
env:
@@ -27,3 +29,14 @@ jobs:
2729
ORG_GRADLE_PROJECT_SIGNINGPASSWORD: ${{secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD}}
2830
ORG_GRADLE_PROJECT_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
2931
ORG_GRADLE_PROJECT_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
32+
33+
- name: Tag version
34+
run: |
35+
VERSION=$(./gradlew properties | grep "version:" | awk '{print $2}')
36+
TAG="v$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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Add the following dependencies:
1010

1111
```groovy
1212
dependencies {
13-
runtimeOnly 'io.github.springwolf:springwolf-ui:0.6.0'
13+
runtimeOnly 'io.github.springwolf:springwolf-ui:0.7.0'
1414
}
1515
```
1616

RELEASING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Releasing
2+
3+
The following lists describe the steps necessary to release a new version.
4+
5+
## springwolf-ui
6+
1. Update version number in `build.gradle`
7+
2. Update version number in `README.md`
8+
3. Run `npm run update-mocks`
9+
4. Run `npm run start` to test the ui with the updated mocks
10+
5. Run github `Publish releases` pipeline
11+
6. Release version in nexus
12+
7. Update version number on website

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
def isSnapshot = Boolean.valueOf(project.findProperty('SNAPSHOT'))
99

1010
group = 'io.github.springwolf'
11-
version = '0.6.0' + (isSnapshot ? '-SNAPSHOT' : '')
11+
version = '0.7.0' + (isSnapshot ? '-SNAPSHOT' : '')
1212
sourceCompatibility = '1.8'
1313

1414
node {
@@ -113,4 +113,3 @@ signing {
113113
useInMemoryPgpKeys(signingKey, signingPassword)
114114
sign publishing.publications.mavenJava
115115
}
116-

gradle/wrapper/gradle-wrapper.jar

4.11 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)