PaperMC-Folio-Build/.gitea/workflows/build.yml
Radim Lipovčan 69ce8bf994
All checks were successful
Build Folio / Explore-Gitea-Actions (push) Successful in 17m15s
Aktualizovat .gitea/workflows/build.yml
2024-12-16 19:08:24 +01:00

35 lines
1.3 KiB
YAML

name: Build Folio
run-name: Build Folio Jar
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- name: Build | Prepare packages
run: |
apt update; apt-get install software-properties-common -y
wget -O- https://apt.corretto.aws/corretto.key | apt-key add -
add-apt-repository 'deb https://apt.corretto.aws stable main'
apt-get update; apt-get install -y java-17-amazon-corretto-jdk
- 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://git.lipovcan.cz/Upstream/Folia.git
cd Folia
git checkout -b dev/1.21.4
ls -lah
- name: Build | applyPatches
run: cd Folia && ./gradlew applyPatches
- name: Build | createJar
run: cd Folia && ./gradlew createReobfBundlerJar
- name: Build | list jar
run: cd Folia && ls build/libs/*
- name: Release
uses: https://git.lipovcan.cz/Upstream/gitea-release-action.git@v1
with:
tag_name: "1.21.4"
files: |-
build/libs/*