Compare commits
No commits in common. "ef5c81d7ccf6dd0c0acf119f79f75755eba7f978" and "02856bc49a0ab283f46ceba40993b234183b6c39" have entirely different histories.
ef5c81d7cc
...
02856bc49a
@ -3,7 +3,7 @@ name: Build and Release Minecraft Plugin
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- release
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
@ -1,65 +0,0 @@
|
|||||||
name: Build and Release Minecraft Plugin
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- testing
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set up Java 17
|
|
||||||
uses: actions/setup-java@v2
|
|
||||||
with:
|
|
||||||
java-version: '17'
|
|
||||||
distribution: 'adopt' # Verwenden Sie 'adopt' für Java 17
|
|
||||||
|
|
||||||
- name: Update Apt
|
|
||||||
run: apt update -y
|
|
||||||
|
|
||||||
- name: Update CA certificates
|
|
||||||
run: apt-get install --reinstall ca-certificates -y
|
|
||||||
|
|
||||||
- name: Install Maven
|
|
||||||
run: apt install maven -y
|
|
||||||
|
|
||||||
- name: Build with Maven
|
|
||||||
run: mvn clean install
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: BetterMinecraft-stable.jar
|
|
||||||
path: target/BetterMinecraft-stable.jar
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Get letzte Release-Version
|
|
||||||
id: get_version
|
|
||||||
run: echo "::set-output name=version::$(git describe --tags --abbrev=0 || echo '0.0.0')"
|
|
||||||
|
|
||||||
- name: Incrementiere Version
|
|
||||||
id: increment_version
|
|
||||||
run: |
|
|
||||||
IFS='.' read -ra VERSION <<< "${{ steps.get_version.outputs.version }}"
|
|
||||||
MAJOR="${VERSION[0]}"
|
|
||||||
MINOR="${VERSION[1]}"
|
|
||||||
PATCH="${VERSION[2]}"
|
|
||||||
echo "::set-output name=major::$(($MAJOR + 1))"
|
|
||||||
echo "::set-output name=minor::$(($MINOR + 1))"
|
|
||||||
echo "::set-output name=patch::$(($PATCH + 1))"
|
|
||||||
|
|
||||||
- name: Create Release
|
|
||||||
id: create_release
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
target/BetterMinecraft-beta.jar
|
|
||||||
tag_name: ${{ steps.increment_version.outputs.major }}.${{ steps.increment_version.outputs.minor }}.${{ steps.increment_version.outputs.patch }}
|
|
||||||
release_name: Release ${{ steps.increment_version.outputs.major }}.${{ steps.increment_version.outputs.minor }}.${{ steps.increment_version.outputs.patch }}
|
|
||||||
draft: false
|
|
||||||
prerelease: true
|
|
@ -1,2 +0,0 @@
|
|||||||
+ added system type changelog
|
|
||||||
+ added custom type changelog
|
|
Loading…
x
Reference in New Issue
Block a user