Patch #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Development | |
| on: | |
| push: | |
| branches: [legacy] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 21 | |
| distribution: temurin | |
| - name: Download GriefPrevention | |
| run: curl -o GriefPrevention.jar https://api.serversmp.xyz/upload/69f601b7986e1f4bd6f7cf46.jar | |
| - name: Download LogBlock | |
| run: curl -o LogBlock.jar https://api.serversmp.xyz/upload/69f601b7a022054e454d11a4.jar | |
| - name: Install GriefPrevention to Maven | |
| run: mvn install:install-file -Dfile=GriefPrevention.jar -DgroupId=com.github.TechFortress -DartifactId=GriefPrevention -Dversion=16.16.0 -Dpackaging=jar -DgeneratePom=true | |
| - name: Install LogBlock to Maven | |
| run: mvn install:install-file -Dfile=LogBlock.jar -DgroupId=de.diddiz -DartifactId=logblock -Dversion=1.16.1.2-SNAPSHOT -Dpackaging=jar -DgeneratePom=true | |
| - name: Build | |
| run: mvn package --file pom.xml | |
| - name: Extract repository name | |
| run: echo "NAME=$(basename ${{ github.repository }})" >> $GITHUB_ENV | |
| - name: Upload Build | |
| uses: marvinpinto/action-automatic-releases@master | |
| with: | |
| title: "${{ env.NAME }}" | |
| automatic_release_tag: "latest" | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| files: "target/*.jar" | |
| prerelease: false |