mirror of
https://github.com/JamesPeters98/ChestsPlusPlus.git
synced 2024-11-22 02:25:58 +01:00
Update maven.yml
This commit is contained in:
parent
c1a1e48f22
commit
52afb28d85
83
.github/workflows/maven.yml
vendored
83
.github/workflows/maven.yml
vendored
@ -35,38 +35,37 @@ jobs:
|
||||
ls ~/BuildTools
|
||||
shell: bash
|
||||
|
||||
# - name: Set up JDK 8
|
||||
# uses: actions/setup-java@v2
|
||||
# with:
|
||||
# java-version: '8'
|
||||
# distribution: 'adopt'
|
||||
- name: Set up JDK 8
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '8'
|
||||
distribution: 'adopt'
|
||||
|
||||
# - name: Run BuildTools Pre 1.17
|
||||
# working-directory: ~/BuildTools
|
||||
# run: |
|
||||
# ls ~/BuildTools -R
|
||||
# # make file runnable, might not be necessary
|
||||
# chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-pre1.17.sh"
|
||||
# # run script
|
||||
# bash build-pre1.17.sh
|
||||
# ls ~/.m2/repository/org/spigotmc/ -R
|
||||
# shell: bash
|
||||
- name: Run BuildTools Pre 1.17
|
||||
working-directory: BuildTools
|
||||
run: |
|
||||
cd ~/BuildTools
|
||||
# make file runnable, might not be necessary
|
||||
chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-pre1.17.sh"
|
||||
# run script
|
||||
bash ${GITHUB_WORKSPACE}/BuildTools/build-pre1.17.sh
|
||||
shell: bash
|
||||
|
||||
# - name: Set up JDK 16
|
||||
# uses: actions/setup-java@v2
|
||||
# with:
|
||||
# java-version: '16'
|
||||
# distribution: 'adopt'
|
||||
- name: Set up JDK 16
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '16'
|
||||
distribution: 'adopt'
|
||||
|
||||
# - name: Run BuildTools 1.17
|
||||
# working-directory: ~/BuildTools
|
||||
# run: |
|
||||
# # make file runnable, might not be necessary
|
||||
# chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-1.17.sh"
|
||||
# # run script
|
||||
# bash build-1.17.sh
|
||||
# ls ~/.m2/repository/org/spigotmc/ -R
|
||||
# shell: sh
|
||||
- name: Run BuildTools 1.17
|
||||
working-directory: BuildTools
|
||||
run: |
|
||||
cd ~/BuildTools
|
||||
# make file runnable, might not be necessary
|
||||
chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-1.17.sh"
|
||||
# run script
|
||||
bash ${GITHUB_WORKSPACE}/BuildTools/build-1.17.sh
|
||||
shell: bash
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v2
|
||||
@ -78,24 +77,22 @@ jobs:
|
||||
working-directory: BuildTools
|
||||
run: |
|
||||
cd ~/BuildTools
|
||||
ls -R
|
||||
# make file runnable, might not be necessary
|
||||
chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-1.18+.sh"
|
||||
# run script
|
||||
bash ${GITHUB_WORKSPACE}/BuildTools/build-1.18+.sh
|
||||
ls ~/BuildTools -R
|
||||
shell: sh
|
||||
shell: bash
|
||||
|
||||
# - name: Build with Maven
|
||||
# run: mvn -B package --file pom.xml
|
||||
- name: Build with Maven
|
||||
run: mvn -B package --file pom.xml
|
||||
|
||||
# - name: Upload Release Asset
|
||||
# id: upload-release-asset
|
||||
# uses: softprops/action-gh-release@v1
|
||||
# if: startsWith(github.event.ref, 'refs/tags/v')
|
||||
# with:
|
||||
# draft: true
|
||||
# generate_release_notes: true
|
||||
# files: |
|
||||
# ${GITHUB_WORKSPACE}/Server/plugins/ChestsPlusPlus-*.jar
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.event.ref, 'refs/tags/v')
|
||||
with:
|
||||
draft: true
|
||||
generate_release_notes: true
|
||||
files: |
|
||||
${GITHUB_WORKSPACE}/Server/plugins/ChestsPlusPlus-*.jar
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user