mirror of
https://github.com/JamesPeters98/ChestsPlusPlus.git
synced 2024-11-25 03:55:15 +01:00
Update maven.yml
This commit is contained in:
parent
5d0f69fad3
commit
05a996d377
92
.github/workflows/maven.yml
vendored
92
.github/workflows/maven.yml
vendored
@ -23,10 +23,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.m2
|
~/.m2
|
||||||
${GITHUB_WORKSPACE}/BuildTools/Bukkit
|
~/BuildTools/Bukkit
|
||||||
${GITHUB_WORKSPACE}/BuildTools/CraftBukkit
|
~/BuildTools/CraftBukkit
|
||||||
${GITHUB_WORKSPACE}/BuildTools/Spigot
|
~/BuildTools/Spigot
|
||||||
${GITHUB_WORKSPACE}/BuildTools/BuildData
|
~/BuildTools/BuildData
|
||||||
key: buildtools-cache
|
key: buildtools-cache
|
||||||
|
|
||||||
- name: Check BuildTools cached
|
- name: Check BuildTools cached
|
||||||
@ -36,38 +36,38 @@ jobs:
|
|||||||
ls ${GITHUB_WORKSPACE}/BuildTools
|
ls ${GITHUB_WORKSPACE}/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 ${GITHUB_WORKSPACE}/BuildTools/ -R
|
# ls ~/BuildTools -R
|
||||||
# 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 build-pre1.17.sh
|
||||||
ls ~/.m2/repository/org/spigotmc/ -R
|
# 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
|
# # make file runnable, might not be necessary
|
||||||
chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-1.17.sh"
|
# chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-1.17.sh"
|
||||||
# run script
|
# # run script
|
||||||
bash build-1.17.sh
|
# bash build-1.17.sh
|
||||||
ls ~/.m2/repository/org/spigotmc/ -R
|
# ls ~/.m2/repository/org/spigotmc/ -R
|
||||||
shell: sh
|
# shell: sh
|
||||||
|
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
@ -76,9 +76,9 @@ jobs:
|
|||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
|
|
||||||
- name: Run BuildTools 1.18+
|
- name: Run BuildTools 1.18+
|
||||||
working-directory: ./BuildTools
|
working-directory: ~/BuildTools
|
||||||
run: |
|
run: |
|
||||||
ls -R
|
ls ~/BuildTools -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
|
||||||
@ -86,16 +86,16 @@ jobs:
|
|||||||
ls ~/.m2/repository/org/spigotmc/ -R
|
ls ~/.m2/repository/org/spigotmc/ -R
|
||||||
shell: sh
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user