Compare commits
13 Commits
a716f1743e
...
1.1.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
341c4d753a | ||
|
|
19afb82083 | ||
|
|
f188f6d949 | ||
|
|
eeb921dd32 | ||
| 8e1066496e | |||
|
|
2c42900cdf | ||
| d2a43c4f98 | |||
|
|
5e16e91883 | ||
| 4ad9f52e5c | |||
|
|
b77b84ed49 | ||
| 3da3741371 | |||
|
|
bfa6cdcc6a | ||
| f83154c90d |
@@ -17,13 +17,14 @@ jobs:
|
||||
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: |
|
||||
curl -O https://apache.mirror.digitalpacific.com.au/maven/maven-3/3.8.4/binaries/apache-maven-3.8.4-bin.tar.gz
|
||||
tar -xf apache-maven-3.8.4-bin.tar.gz
|
||||
sudo mv apache-maven-3.8.4 /opt/maven
|
||||
sudo ln -s /opt/maven/bin/mvn /usr/local/bin/mvn
|
||||
rm apache-maven-3.8.4-bin.tar.gz
|
||||
run: apt install maven -y
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn clean install
|
||||
@@ -41,13 +42,28 @@ jobs:
|
||||
- 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.jar
|
||||
tag_name: ${{ gitea.ref }}
|
||||
title: Release ${{ gitea.ref }}
|
||||
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: false
|
||||
Reference in New Issue
Block a user