generated from weihao/bungee-plugin-maven-template
-
Notifications
You must be signed in to change notification settings - Fork 22
38 lines (33 loc) · 1.21 KB
/
release.yml
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
33
34
35
36
37
38
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Release
on:
workflow_dispatch:
release:
types: [ created ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up JDK
uses: actions/setup-java@master
with:
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Release
uses: qcastel/github-actions-maven-release@master
env:
JAVA_HOME: /usr/lib/jvm/java-17-openjdk/
with:
access-token: ${{ secrets.GITHUB_ACCESS_TOKEN }}
release-branch-name: "main"
maven-options: "-DignoreSnapshots=true"
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
maven-repo-server-id: github
maven-repo-server-username: ${{ secrets.MVN_REPO_PRIVATE_REPO_USER }}
maven-repo-server-password: ${{ secrets.MVN_REPO_PRIVATE_REPO_PASSWORD }}
git-release-bot-name: ${{ secrets.BOT_NAME }}
git-release-bot-email: ${{ secrets.BOT_EMAIL }}