Merge pull request 'avoiding sudo in workflow' (#6) from main into Release
Some checks failed
Build and Release Minecraft Plugin / build (push) Failing after 49s
Build and Release Minecraft Plugin / release (push) Has been skipped

Reviewed-on: #6
This commit is contained in:
Steev 2023-10-03 18:56:06 +02:00
commit a716f1743e

View File

@ -18,7 +18,12 @@ jobs:
distribution: 'adopt' # Verwenden Sie 'adopt' für Java 17
- name: Install Maven
run: sudo apt-get install -y 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
- name: Build with Maven
run: mvn clean install