Compare commits
No commits in common. "main" and "0.1.6" have entirely different histories.
5 changed files with 51 additions and 59 deletions
|
@ -1,27 +1,28 @@
|
|||
---
|
||||
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.4
|
||||
uses: https://w9r.dev/w9r.dev/action-setup-environment@v1.1.2
|
||||
with:
|
||||
roleid: ${{ secrets.VAULT_ROLE_ID }}
|
||||
secretid: ${{ secrets.VAULT_SECRET_ID }}
|
||||
|
||||
- name: "Determine next version"
|
||||
uses: https://github.com/obfu5c8/action-svu@e0ac511a90318bc284bf845936acd5c5c077d788 # v1
|
||||
uses: https://github.com/obfu5c8/action-svu@v1
|
||||
id: generate_next_version
|
||||
with:
|
||||
type: auto
|
||||
|
@ -34,57 +35,89 @@ 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://github.com/jreleaser/release-action@f69e545b05f149483cecb2fb81866247992694b8 # 2.4.2
|
||||
uses: https://w9r.dev/actions/release-action@main
|
||||
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.JRELEASER_PROJECT_VERSION }} [skip ci]"
|
||||
commit_message: "Release ${{ env.NEW_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://github.com/jreleaser/release-action@f69e545b05f149483cecb2fb81866247992694b8 # 2.4.2
|
||||
uses: https://w9r.dev/actions/release-action@main
|
||||
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://github.com/jreleaser/release-action@f69e545b05f149483cecb2fb81866247992694b8 # 2.4.2
|
||||
uses: https://w9r.dev/actions/release-action@main
|
||||
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@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
|
||||
uses: https://gitea.com/actions/upload-artifact@v3
|
||||
with:
|
||||
name: jreleaser-trace
|
||||
path: target/jreleaser/trace.log
|
||||
|
||||
- name: JReleaser release properties
|
||||
if: always()
|
||||
uses: https://gitea.com/actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
|
||||
uses: https://gitea.com/actions/upload-artifact@v3
|
||||
with:
|
||||
name: jreleaser-properties
|
||||
path: target/jreleaser/output.properties
|
||||
|
|
|
@ -14,17 +14,20 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Initialize Environment"
|
||||
uses: https://w9r.dev/w9r.dev/action-setup-environment@v1.1.4
|
||||
uses: https://w9r.dev/w9r.dev/action-setup-environment@v1.1.1
|
||||
with:
|
||||
roleid: "${{ secrets.VAULT_ROLE_ID }}"
|
||||
secretid: "${{ secrets.VAULT_SECRET_ID }}"
|
||||
|
||||
- name: "Cache SonarQube packages"
|
||||
uses: https://github.com/actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
|
||||
uses: https://github.com/actions/cache@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,41 +1,3 @@
|
|||
## [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.13</version>
|
||||
<version>0.1.6</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.16</w9r.logback.version>
|
||||
<w9r.logback.version>1.5.15</w9r.logback.version>
|
||||
</properties>
|
||||
|
||||
<licenses>
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"local>w9r.dev/renovate-config"
|
||||
]
|
||||
}
|
Loading…
Add table
Reference in a new issue