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: #9
This commit is contained in:
Steev 2023-10-03 19:04:35 +02:00
commit 5e16e91883

View File

@ -22,10 +22,10 @@ jobs:
- name: Install Maven
run: |
curl -O https://www-us.apache.org/dist/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
wget -q https://downloads.apache.org/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
export M2_HOME=$PWD/apache-maven-3.8.4
export PATH=$M2_HOME/bin:$PATH
rm apache-maven-3.8.4-bin.tar.gz
- name: Build with Maven