Documented
component rework
#360
This file contains 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: Java CI with Maven | |
on: | |
push: | |
paths-ignore: | |
- README.md | |
- LICENSE | |
- LICENSE.LESSER | |
- .gitignore | |
- CODE_OF_CONDUCT.md | |
- decompiler/** | |
- .github/** | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.repository == 'MaxPixelStudios/MinecraftDecompiler' | |
permissions: | |
packages: write | |
contents: write | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up JDK | |
uses: actions/[email protected] | |
with: | |
java-version: 17 | |
distribution: temurin | |
check-latest: true | |
cache: 'maven' | |
- name: Copy servers | |
run: pwsh ./copy-server.ps1 | |
- name: Build with Maven and deploy to GitHub Packages | |
run: | | |
mvn -B clean deploy | |
# echo "MVN_PROJECT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Upload target | |
if: success() | |
uses: actions/[email protected] | |
with: | |
name: MinecraftDecompiler | |
path: modules/cli/target/MinecraftDecompiler.jar | |
# - name: Pre-release | |
# if: ${{ success() && !startsWith(github.event.head_commit.head_commit.message, 'Bump version to ') && !endsWith(github.event.head_commit.head_commit.message, ' Release') }} | |
# uses: softprops/action-gh-release@v1 | |
# with: | |
# name: MinecraftDecompiler v${{ env.MVN_PROJECT_VERSION }}+${{ github.sha }} Pre-released | |
# tag_name: v${{ env.MVN_PROJECT_VERSION }}+${{ github.sha }} | |
# target_commitish: ${{ github.sha }} | |
# body: ${{ github.event.head_commit.head_commit.message }} | |
# files: MinecraftDecompiler.jar | |
# prerelease: true |