Compare commits
17 commits
Author | SHA1 | Date | |
---|---|---|---|
354b5aa5e5 | |||
dab93b0bf5 | |||
4a4bafa2da | |||
ef2f1e9d2c | |||
392515a7e9 | |||
1878fe4a52 | |||
5ba6ccd672 | |||
adbdd9cf79 | |||
9b917743d4 | |||
4f64080737 | |||
a211f84003 | |||
db8af7e1b6 | |||
a49f32762b | |||
a2cb4ca22a | |||
0451a7aed0 | |||
6b721e3894 | |||
6ee9204316 |
5 changed files with 59 additions and 51 deletions
|
@ -1,28 +1,27 @@
|
|||
---
|
||||
name: release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ !startsWith(github.event.head_commit.message, 'Release') }}
|
||||
env:
|
||||
JRELEASER_OUTPUT_DIRECTORY: target
|
||||
|
||||
steps:
|
||||
- name: "Initialize Environment"
|
||||
id: initialize
|
||||
uses: https://w9r.dev/w9r.dev/action-setup-environment@v1.1.2
|
||||
uses: https://w9r.dev/w9r.dev/action-setup-environment@v1.1.4
|
||||
with:
|
||||
roleid: ${{ secrets.VAULT_ROLE_ID }}
|
||||
secretid: ${{ secrets.VAULT_SECRET_ID }}
|
||||
|
||||
- name: "Determine next version"
|
||||
uses: https://github.com/obfu5c8/action-svu@v1
|
||||
uses: https://github.com/obfu5c8/action-svu@e0ac511a90318bc284bf845936acd5c5c077d788 # v1
|
||||
id: generate_next_version
|
||||
with:
|
||||
type: auto
|
||||
|
@ -35,89 +34,57 @@ jobs:
|
|||
suffix: ''
|
||||
|
||||
- name: "Set new version"
|
||||
env:
|
||||
MAVEN_USERNAME: ${{ env.NEXUS_USERNAME }}
|
||||
MAVEN_CENTRAL_TOKEN: ${{ env.NEXUS_PASSWORD }}
|
||||
MAVEN_GPG_PASSPHRASE: ${{ env.GPG_PASSPHRASE }}
|
||||
run: |
|
||||
NEW_VERSION=${{steps.generate_next_version.outputs.version}}
|
||||
echo NEW_VERSION=$NEW_VERSION >> "$GITHUB_ENV"
|
||||
echo JRELEASER_PROJECT_VERSION=$NEW_VERSION >> "$GITHUB_ENV"
|
||||
echo "New version: $NEW_VERSION"
|
||||
echo "mvn -B --file pom.xml versions:set -DnewVersion=$NEW_VERSION"
|
||||
mvn -B --file pom.xml versions:set -DnewVersion=$NEW_VERSION
|
||||
|
||||
|
||||
- name: "Run JReleaser (Changelog)"
|
||||
uses: https://w9r.dev/actions/release-action@main
|
||||
uses: https://github.com/jreleaser/release-action@f69e545b05f149483cecb2fb81866247992694b8 # 2.4.2
|
||||
with:
|
||||
arguments: changelog --debug
|
||||
setup-java: false
|
||||
continue-on-error: true
|
||||
env:
|
||||
JRELEASER_OUTPUT_DIRECTORY: target
|
||||
JRELEASER_PROJECT_VERSION: ${{ env.NEW_VERSION }}
|
||||
JRELEASER_GITEA_TOKEN: ${{ env.JRELEASER_GITEA_TOKEN }}
|
||||
JRELEASER_GPG_PASSPHRASE: ${{ env.RELEASEBOT_PASSPHRASE }}
|
||||
JRELEASER_GPG_PUBLIC_KEY: ${{ env.RELEASEBOT_PUBLIC_KEY }}
|
||||
JRELEASER_GPG_SECRET_KEY: ${{ env.RELEASEBOT_PRIVATE_KEY }}
|
||||
|
||||
- name: "Commit and push changes"
|
||||
uses: https://w9r.dev/w9r.dev/action-git-commit-push@v1.4
|
||||
with:
|
||||
email: ${{ steps.initialize.outputs.gitemail }}
|
||||
name: ${{ steps.initialize.outputs.gituser }}
|
||||
commit_message: "Release ${{ env.NEW_VERSION }} [skip ci]"
|
||||
commit_message: "Release ${{ env.JRELEASER_PROJECT_VERSION }} [skip ci]"
|
||||
files: pom.xml CHANGELOG.md
|
||||
access_token: ${{ env.JRELEASER_GITEA_TOKEN }}
|
||||
|
||||
- name: Build package and populate staging area for deployment
|
||||
env:
|
||||
MAVEN_USERNAME: ${{ env.NEXUS_USERNAME }}
|
||||
MAVEN_CENTRAL_TOKEN: ${{ env.NEXUS_PASSWORD }}
|
||||
MAVEN_GPG_PASSPHRASE: ${{ env.GPG_PASSPHRASE }}
|
||||
run: |
|
||||
mvn -X -B --file pom.xml package
|
||||
mvn -X --file pom.xml -Ppublication
|
||||
|
||||
- name: "Run JReleaser (Assemble)"
|
||||
uses: https://w9r.dev/actions/release-action@main
|
||||
uses: https://github.com/jreleaser/release-action@f69e545b05f149483cecb2fb81866247992694b8 # 2.4.2
|
||||
with:
|
||||
arguments: assemble --debug
|
||||
setup-java: false
|
||||
continue-on-error: true
|
||||
env:
|
||||
JRELEASER_OUTPUT_DIRECTORY: target
|
||||
JRELEASER_PROJECT_VERSION: ${{ env.NEW_VERSION }}
|
||||
JRELEASER_GITEA_TOKEN: ${{ env.JRELEASER_GITEA_TOKEN }}
|
||||
JRELEASER_GPG_PASSPHRASE: ${{ env.RELEASEBOT_PASSPHRASE }}
|
||||
JRELEASER_GPG_PUBLIC_KEY: ${{ env.RELEASEBOT_PUBLIC_KEY }}
|
||||
JRELEASER_GPG_SECRET_KEY: ${{ env.RELEASEBOT_PRIVATE_KEY }}
|
||||
|
||||
- name: "Run JReleaser (Release)"
|
||||
uses: https://w9r.dev/actions/release-action@main
|
||||
uses: https://github.com/jreleaser/release-action@f69e545b05f149483cecb2fb81866247992694b8 # 2.4.2
|
||||
with:
|
||||
arguments: release --debug
|
||||
setup-java: false
|
||||
env:
|
||||
JRELEASER_OUTPUT_DIRECTORY: target
|
||||
JRELEASER_PROJECT_VERSION: ${{ env.NEW_VERSION }}
|
||||
JRELEASER_GITEA_TOKEN: ${{ env.JRELEASER_GITEA_TOKEN }}
|
||||
JRELEASER_GPG_PASSPHRASE: ${{ env.RELEASEBOT_PASSPHRASE }}
|
||||
JRELEASER_GPG_PUBLIC_KEY: ${{ env.RELEASEBOT_PUBLIC_KEY }}
|
||||
JRELEASER_GPG_SECRET_KEY: ${{ env.RELEASEBOT_PRIVATE_KEY }}
|
||||
JRELEASER_ARTIFACTORY_USERNAME: ${{ env.NEXUS_USERNAME }}
|
||||
JRELEASER_ARTIFACTORY_TOKEN: ${{ env.NEXUS_PASSWORD }}
|
||||
|
||||
- name: JReleaser release trace
|
||||
if: always()
|
||||
uses: https://gitea.com/actions/upload-artifact@v3
|
||||
uses: https://gitea.com/actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
|
||||
with:
|
||||
name: jreleaser-trace
|
||||
path: target/jreleaser/trace.log
|
||||
|
||||
- name: JReleaser release properties
|
||||
if: always()
|
||||
uses: https://gitea.com/actions/upload-artifact@v3
|
||||
uses: https://gitea.com/actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
|
||||
with:
|
||||
name: jreleaser-properties
|
||||
path: target/jreleaser/output.properties
|
||||
|
|
|
@ -14,20 +14,17 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Initialize Environment"
|
||||
uses: https://w9r.dev/w9r.dev/action-setup-environment@v1.1.1
|
||||
uses: https://w9r.dev/w9r.dev/action-setup-environment@v1.1.4
|
||||
with:
|
||||
roleid: "${{ secrets.VAULT_ROLE_ID }}"
|
||||
secretid: "${{ secrets.VAULT_SECRET_ID }}"
|
||||
|
||||
- name: "Cache SonarQube packages"
|
||||
uses: https://github.com/actions/cache@v4
|
||||
uses: https://github.com/actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
|
||||
with:
|
||||
path: ~/.sonar/cache
|
||||
key: "${{ runner.os }}-sonar"
|
||||
restore-keys: "${{ runner.os }}-sonar"
|
||||
|
||||
- name: "SonarQube Scan"
|
||||
env:
|
||||
SONAR_TOKEN: "${{ env.SONARQUBE_TOKEN }}"
|
||||
SONAR_HOST_URL: "${{ env.SONARQUBE_HOST }}"
|
||||
run: "mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar"
|
||||
|
|
38
CHANGELOG.md
38
CHANGELOG.md
|
@ -1,3 +1,41 @@
|
|||
## [0.1.13]
|
||||
- [dab93b0](https://w9r.dev/pom/dependencies/commits/dab93b0) revert 11923acb66a66d6da58579fb1f0ae6dd9a3583b7
|
||||
|
||||
## [0.1.12]
|
||||
### 🐛 Fixes
|
||||
- [392515a](https://w9r.dev/pom/dependencies/commits/392515a) **deps**: update logback monorepo to v1.5.16
|
||||
|
||||
### 🧰 Tasks
|
||||
- [ef2f1e9](https://w9r.dev/pom/dependencies/commits/ef2f1e9) **deps**: update https://gitea.com/actions/upload-artifact action to v4
|
||||
|
||||
## [0.1.11]
|
||||
### 🧰 Tasks
|
||||
- [5ba6ccd](https://w9r.dev/pom/dependencies/commits/5ba6ccd) **deps**: pin dependencies
|
||||
|
||||
## [0.1.10]
|
||||
### 🧰 Tasks
|
||||
- [9b91774](https://w9r.dev/pom/dependencies/commits/9b91774) switch to mainstream release action
|
||||
|
||||
## [0.1.9]
|
||||
### 🧰 Tasks
|
||||
- [a211f84](https://w9r.dev/pom/dependencies/commits/a211f84) switch to mainstream release action
|
||||
|
||||
## [0.1.8]
|
||||
### 🧰 Tasks
|
||||
- [a49f327](https://w9r.dev/pom/dependencies/commits/a49f327) **deps**: add renovate.json
|
||||
|
||||
## [0.1.7]
|
||||
### 🧰 Tasks
|
||||
- [0451a7a](https://w9r.dev/pom/dependencies/commits/0451a7a) update setup action
|
||||
- [6ee9204](https://w9r.dev/pom/dependencies/commits/6ee9204) optimize ci
|
||||
|
||||
---
|
||||
- [6b721e3](https://w9r.dev/pom/dependencies/commits/6b721e3) Release 0.1.7 [skip ci]
|
||||
|
||||
## [0.1.7]
|
||||
### 🧰 Tasks
|
||||
- [6ee9204](https://w9r.dev/pom/dependencies/commits/6ee9204) optimize ci
|
||||
|
||||
## [0.1.6]
|
||||
### 🧰 Tasks
|
||||
- [902b677](https://w9r.dev/pom/dependencies/commits/902b677) fix ci
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -6,7 +6,7 @@
|
|||
|
||||
<groupId>dev.w9r.pom</groupId>
|
||||
<artifactId>dependencies</artifactId>
|
||||
<version>0.1.6</version>
|
||||
<version>0.1.13</version>
|
||||
|
||||
<name>Common Dependency Project Object Model for Maven Builds</name>
|
||||
<description>Common dependencies and management of their versions</description>
|
||||
|
@ -31,7 +31,7 @@
|
|||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<w9r.logback.json.version>0.1.5</w9r.logback.json.version>
|
||||
<w9r.logback.version>1.5.15</w9r.logback.version>
|
||||
<w9r.logback.version>1.5.16</w9r.logback.version>
|
||||
</properties>
|
||||
|
||||
<licenses>
|
||||
|
|
6
renovate.json
Normal file
6
renovate.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"local>w9r.dev/renovate-config"
|
||||
]
|
||||
}
|
Loading…
Add table
Reference in a new issue