-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(central): remove workflow version update automation (#339)
- Loading branch information
1 parent
d099f83
commit 17ae5f3
Showing
2 changed files
with
9 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,20 +3,14 @@ name: Publish a new Maven Central release | |
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Release version' | ||
required: true | ||
nextVersion: | ||
description: 'Next version after release (-SNAPSHOT will be added automatically)' | ||
required: true | ||
# inputs: | ||
# version: | ||
# description: 'Release version' | ||
# required: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
packages: write | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -30,21 +24,8 @@ jobs: | |
cache: maven | ||
- name: Run a build of the code base before release | ||
run: ./mvnw --batch-mode --no-transfer-progress clean install | ||
- name: Set release version | ||
run: ./mvnw --batch-mode --no-transfer-progress versions:set -DnewVersion=${{ github.event.inputs.version }} | ||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
git_config_global: true | ||
git_user_signingkey: true | ||
git_commit_gpgsign: true | ||
- name: Commit & Push changes | ||
uses: actions-js/[email protected] | ||
with: | ||
github_token: ${{ secrets.SUBMODULE_TOKEN }} | ||
message: "Releasing version ${{ github.event.inputs.version }}" | ||
# - name: Set release version | ||
# run: ./mvnw --batch-mode --no-transfer-progress versions:set -DnewVersion=${{ github.event.inputs.version }} | ||
- name: Release with JReleaser | ||
env: | ||
JRELEASER_TAG_NAME: ${{ github.event.inputs.version }} | ||
|
@@ -55,11 +36,3 @@ jobs: | |
JRELEASER_NEXUS2_PASSWORD: ${{ secrets.MAVEN_CENTRAL_NEXUS2_PASSWORD }} | ||
JRELEASER_GITHUB_TOKEN: ${{ secrets.SUBMODULE_TOKEN }} | ||
run: ./release.sh | ||
- name: Set the next release version | ||
run: ./mvnw --batch-mode --no-transfer-progress versions:set -DnewVersion=${{ github.event.inputs.nextVersion }}-SNAPSHOT | ||
- name: Commit & Push changes | ||
uses: actions-js/[email protected] | ||
with: | ||
github_token: ${{ secrets.SUBMODULE_TOKEN }} | ||
message: "Setting version ${{ github.event.inputs.nextVersion }}-SNAPSHOT" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters