mirror of
https://github.com/Plugily-Projects/BuildBattle.git
synced 2026-11-06 01:12:33 -05:00
* Bump version from 5.1.4 to 5.1.4-SNAPSHOT0 * Updated Workflows and MinigamesBox * Bump version from 5.1.4-SNAPSHOT0 to 5.1.4-SNAPSHOT1 --------- Co-authored-by: version-bump[github-action] <41898282+version-bump[github-action]@users.noreply.github.com>
57 lines
1.7 KiB
YAML
57 lines
1.7 KiB
YAML
name: Bump and Publish Master Branch
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- closed
|
|
workflow_dispatch:
|
|
jobs:
|
|
bump:
|
|
if: github.event.pull_request.merged
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Latest Commit
|
|
uses: actions/checkout@v6.0.3
|
|
- name: Bump Version
|
|
id: bump
|
|
uses: Plugily-Projects/version-bump-action@v10
|
|
with:
|
|
github-token: ${{ secrets.github_token }}
|
|
auto-version-bump: false
|
|
auto-version-bump-release: 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/checkout@v6.0.3
|
|
with:
|
|
ref: 'master'
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v5.2.0
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '21'
|
|
java-package: jdk
|
|
- name: Set up Maven
|
|
uses: stCarolas/setup-maven@v5.1
|
|
with:
|
|
maven-version: 3.8.2
|
|
- name: Cache
|
|
uses: actions/cache@v5.0.5
|
|
with:
|
|
path: ~/.m2/repository
|
|
key: maven-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: maven-
|
|
- name: Publish with Maven
|
|
uses: s4u/maven-settings-action@v4.0.0
|
|
with:
|
|
servers: |
|
|
[{
|
|
"id": "Release",
|
|
"username": "${{ secrets.RELEASESUSERNAME }}",
|
|
"password": "${{ secrets.RELEASESPASSWORD }}"
|
|
}]
|
|
- run: mvn clean verify compile package site:site javadoc:javadoc javadoc:jar deploy -DaltDeploymentRepository=Release::https://maven.plugily.xyz/releases -f pom.xml |