13 Commits

Author SHA1 Message Date
Steev
341c4d753a .gitea/workflows/release.yml aktualisiert 2023-10-03 19:43:32 +02:00
Steev
19afb82083 .gitea/workflows/release.yml aktualisiert 2023-10-03 19:38:49 +02:00
Steev
f188f6d949 .gitea/workflows/release.yml aktualisiert 2023-10-03 19:35:47 +02:00
Steev
eeb921dd32 .gitea/workflows/release.yml aktualisiert 2023-10-03 19:34:03 +02:00
8e1066496e changed to standard versioning 2023-10-03 19:30:44 +02:00
Steev
2c42900cdf Merge branch 'Release' into main 2023-10-03 19:24:30 +02:00
d2a43c4f98 adding maven repo on build 2023-10-03 19:23:31 +02:00
Steev
5e16e91883 Merge pull request 'attemp to fix workflow without using sudo in apt commands' (#9) from main into Release
Some checks failed
Build and Release Minecraft Plugin / build (push) Failing after 40s
Build and Release Minecraft Plugin / release (push) Failing after 17s
Reviewed-on: Steev/betterminecraft#9
2023-10-03 19:04:35 +02:00
4ad9f52e5c attemp to fix workflow without using sudo in apt commands 2023-10-03 19:04:16 +02:00
Steev
b77b84ed49 Merge pull request 'attemp to fix workflow without using sudo in apt commands' (#8) from main into Release
All checks were successful
Build and Release Minecraft Plugin / release (push) Has been cancelled
Build and Release Minecraft Plugin / build (push) Has been cancelled
Reviewed-on: Steev/betterminecraft#8
2023-10-03 19:02:42 +02:00
3da3741371 attemp to fix workflow without using sudo in apt commands 2023-10-03 19:02:23 +02:00
Steev
bfa6cdcc6a Merge pull request 'attemp to fix workflow without using sudo in apt commands' (#7) from main into Release
Some checks failed
Build and Release Minecraft Plugin / build (push) Failing after 41s
Build and Release Minecraft Plugin / release (push) Has been skipped
Reviewed-on: Steev/betterminecraft#7
2023-10-03 19:01:07 +02:00
f83154c90d attemp to fix workflow without using sudo in apt commands 2023-10-03 19:00:48 +02:00

View File

@@ -17,13 +17,14 @@ jobs:
java-version: '17' java-version: '17'
distribution: 'adopt' # Verwenden Sie 'adopt' für Java 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 - name: Install Maven
run: | run: apt install maven -y
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
- name: Build with Maven - name: Build with Maven
run: mvn clean install run: mvn clean install
@@ -41,13 +42,28 @@ jobs:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v2 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 - name: Create Release
id: create_release id: create_release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
files: | files: |
target/BetterMinecraft.jar target/BetterMinecraft.jar
tag_name: ${{ gitea.ref }} tag_name: ${{ steps.increment_version.outputs.major }}.${{ steps.increment_version.outputs.minor }}.${{ steps.increment_version.outputs.patch }}
title: Release ${{ gitea.ref }} release_name: Release ${{ steps.increment_version.outputs.major }}.${{ steps.increment_version.outputs.minor }}.${{ steps.increment_version.outputs.patch }}
draft: false draft: false
prerelease: false prerelease: false