forked from hayorov/allure-jenkins-plugin
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15b42b3
commit 908ccad
Showing
3 changed files
with
26 additions
and
22 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
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 |
---|---|---|
@@ -1,21 +1,28 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
releaseVersion: | ||
description: "The release version in <MAJOR>.<MINOR>.<PATCH> format" | ||
required: true | ||
nextVersion: | ||
description: "The next version in <MAJOR>.<MINOR> format WITHOUT SNAPSHOT SUFFIX" | ||
required: true | ||
|
||
jobs: | ||
build: | ||
triage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: '11' | ||
- name: "Maven Build" | ||
run: ./mvnw package -Pversion=${GITHUB_REF:10} | ||
- name: "Maven Publish" | ||
run: | | ||
printf "userName=${{ secrets.JENKINS_USERNAME }}\npassword=${{ secrets.JENKINS_PASSWORD }}\n" > ~/.jenkins-ci.org | ||
./mvnw release:prepare release:perform -Pversion=${GITHUB_REF:10} | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
cache: 'maven' | ||
server-id: maven.jenkins-ci.org | ||
server-username: ${{ secrets.JENKINS_USERNAME }} | ||
server-password: ${{ secrets.JENKINS_TOKEN }} | ||
- run: | | ||
./mvnw versions:set -DnewVersion=${{ env.VERSION }} | ||
./mvnw publish |
This file was deleted.
Oops, something went wrong.