-
Notifications
You must be signed in to change notification settings - Fork 15
54 lines (53 loc) · 1.62 KB
/
deploy-development.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Bump and Publish Development Branch
on:
push:
branches: [ development ]
workflow_dispatch:
jobs:
bump:
runs-on: ubuntu-latest
steps:
- name: Checkout Latest Commit
uses: actions/[email protected]
- name: Bump Version
id: bump
uses: Plugily-Projects/version-bump-action@v10
with:
github-token: ${{ secrets.github_token }}
auto-version-bump: true
- name: Print Version
run: "echo 'New Version: ${{steps.bump.outputs.version}}'"
publish:
needs: bump
runs-on: ubuntu-latest
steps:
- name: Checkout Latest Commit
uses: actions/[email protected]
with:
ref: 'development'
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '21'
java-package: jdk
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.8.2
- name: Cache
uses: actions/[email protected]
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: maven-
- name: Publish with Maven
uses: s4u/[email protected]
with:
servers: |
[{
"id": "Snapshot",
"username": "${{ secrets.SNAPSHOTSUSERNAME }}",
"password": "${{ secrets.SNAPSHOTSPASSWORD }}"
}]
- run: mvn clean verify compile package site:site javadoc:javadoc javadoc:jar deploy -DaltDeploymentRepository=Snapshot::https://maven.plugily.xyz/snapshots -f pom.xml