Some checks failed
Build JAR with Maven / Build-latest-jar (push) Failing after 19m38s
34 lines
1.7 KiB
YAML
34 lines
1.7 KiB
YAML
name: Build JAR with Maven
|
|
run-name: Build Jar
|
|
on: [push]
|
|
jobs:
|
|
Build-latest-jar:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Build | Prepare packages
|
|
run: |
|
|
apt update; apt-get install -y wget software-properties-common apt-transport-https gpg
|
|
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
|
|
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
|
|
apt update; apt-get install -y temurin-21-jdk maven
|
|
- name: Setup git
|
|
run: |
|
|
git config --global user.name "Radim Lipovčan"
|
|
git config --global user.email "radim@lipovcan.cz"
|
|
- name: Build | Clone repository
|
|
run: |
|
|
git clone https://github.com/MyPetORG/MyPet.git
|
|
cd MyPet
|
|
git log
|
|
ls -lah
|
|
- name: Build | mvn build
|
|
run: cd MyPet && mvn clean package install -e && ls -lah && ls */ -lah
|
|
- name: Build | publish jar
|
|
run: |
|
|
curl --insecure --user username:mypass -T MyPet/target/*.jar ftp://192.168.10.133:/
|
|
curl --insecure --user username:mypass -T MyPet/target/*.jar ftp://192.168.10.133:/
|
|
- name: Push | Create release
|
|
uses: https://git.lipovcan.cz/Upstream/gitea-release-action.git@v1
|
|
with:
|
|
files: |-
|
|
MyPet/target/*.jar |