forked from hayorov/allure-jenkins-plugin
-
Notifications
You must be signed in to change notification settings - Fork 73
32 lines (29 loc) · 795 Bytes
/
publish.yml
File metadata and controls
32 lines (29 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Publish
on:
release:
types: [ published ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: refs/tags/${{ github.event.release.tag_name }}
fetch-depth: 0
- uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
server-id: maven.jenkins-ci.org
server-username: JENKINS_USERNAME
server-password: JENKINS_TOKEN
- name: "Build"
run: ./mvnw -B -ntp verify
- name: "Publish"
run: ./mvnw -B -ntp -DskipTests deploy
env:
JENKINS_USERNAME: ${{ secrets.JENKINS_USERNAME }}
JENKINS_TOKEN: ${{ secrets.JENKINS_TOKEN }}