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

Commit

Permalink
Merge pull request #40 from sam0r040/feat/release-preparation
Browse files Browse the repository at this point in the history
Feat/release preparation
  • Loading branch information
sam0r040 authored Apr 21, 2023
2 parents a6a6d29 + d29e903 commit 7d2d40b
Show file tree
Hide file tree
Showing 10 changed files with 533 additions and 304 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Publish release
on: workflow_dispatch

permissions:
contents: write
packages: write

jobs:
Expand All @@ -11,14 +12,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'temurin'
java-version: '17'

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Publish package
run: ./gradlew publish
env:
Expand All @@ -27,3 +29,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 properties | grep "version:" | awk '{print $2}')
TAG="v$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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Add the following dependencies:

```groovy
dependencies {
runtimeOnly 'io.github.springwolf:springwolf-ui:0.6.0'
runtimeOnly 'io.github.springwolf:springwolf-ui:0.7.0'
}
```

Expand Down
12 changes: 12 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Releasing

The following lists describe the steps necessary to release a new version.

## springwolf-ui
1. Update version number in `build.gradle`
2. Update version number in `README.md`
3. Run `npm run update-mocks`
4. Run `npm run start` to test the ui with the updated mocks
5. Run github `Publish releases` pipeline
6. Release version in nexus
7. Update version number on website
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
def isSnapshot = Boolean.valueOf(project.findProperty('SNAPSHOT'))

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

node {
Expand Down Expand Up @@ -113,4 +113,3 @@ signing {
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}

Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 7d2d40b

Please sign in to comment.