Update maven.yml

This commit is contained in:
James Peters 2022-01-12 23:34:45 +00:00 committed by GitHub
parent c1a1e48f22
commit 52afb28d85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,38 +35,37 @@ jobs:
ls ~/BuildTools ls ~/BuildTools
shell: bash shell: bash
# - name: Set up JDK 8 - name: Set up JDK 8
# uses: actions/setup-java@v2 uses: actions/setup-java@v2
# with: with:
# java-version: '8' java-version: '8'
# distribution: 'adopt' distribution: 'adopt'
# - name: Run BuildTools Pre 1.17 - name: Run BuildTools Pre 1.17
# working-directory: ~/BuildTools working-directory: BuildTools
# run: | run: |
# ls ~/BuildTools -R cd ~/BuildTools
# # make file runnable, might not be necessary # make file runnable, might not be necessary
# chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-pre1.17.sh" chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-pre1.17.sh"
# # run script # run script
# bash build-pre1.17.sh bash ${GITHUB_WORKSPACE}/BuildTools/build-pre1.17.sh
# ls ~/.m2/repository/org/spigotmc/ -R shell: bash
# shell: bash
# - name: Set up JDK 16 - name: Set up JDK 16
# uses: actions/setup-java@v2 uses: actions/setup-java@v2
# with: with:
# java-version: '16' java-version: '16'
# distribution: 'adopt' distribution: 'adopt'
# - name: Run BuildTools 1.17 - name: Run BuildTools 1.17
# working-directory: ~/BuildTools working-directory: BuildTools
# run: | run: |
# # make file runnable, might not be necessary cd ~/BuildTools
# chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-1.17.sh" # make file runnable, might not be necessary
# # run script chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-1.17.sh"
# bash build-1.17.sh # run script
# ls ~/.m2/repository/org/spigotmc/ -R bash ${GITHUB_WORKSPACE}/BuildTools/build-1.17.sh
# shell: sh shell: bash
- name: Set up JDK 17 - name: Set up JDK 17
uses: actions/setup-java@v2 uses: actions/setup-java@v2
@ -78,24 +77,22 @@ jobs:
working-directory: BuildTools working-directory: BuildTools
run: | run: |
cd ~/BuildTools cd ~/BuildTools
ls -R
# make file runnable, might not be necessary # make file runnable, might not be necessary
chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-1.18+.sh" chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-1.18+.sh"
# run script # run script
bash ${GITHUB_WORKSPACE}/BuildTools/build-1.18+.sh bash ${GITHUB_WORKSPACE}/BuildTools/build-1.18+.sh
ls ~/BuildTools -R shell: bash
shell: sh
# - name: Build with Maven - name: Build with Maven
# run: mvn -B package --file pom.xml run: mvn -B package --file pom.xml
# - name: Upload Release Asset - name: Upload Release Asset
# id: upload-release-asset id: upload-release-asset
# uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
# if: startsWith(github.event.ref, 'refs/tags/v') if: startsWith(github.event.ref, 'refs/tags/v')
# with: with:
# draft: true draft: true
# generate_release_notes: true generate_release_notes: true
# files: | files: |
# ${GITHUB_WORKSPACE}/Server/plugins/ChestsPlusPlus-*.jar ${GITHUB_WORKSPACE}/Server/plugins/ChestsPlusPlus-*.jar