Hopefully fix workflows

This commit is contained in:
lexikiq
2021-05-04 12:11:28 -04:00
parent dc6942f631
commit c86babf988
3 changed files with 21 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ jobs:
git config --global user.email "you@example.com" git config --global user.email "you@example.com"
git config --global user.name "Your Name" git config --global user.name "Your Name"
git submodule update --init --recursive git submodule update --init --recursive
./parchment jar ./parchment ghjar
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:

View File

@@ -30,7 +30,7 @@ jobs:
git config --global user.email "you@example.com" git config --global user.email "you@example.com"
git config --global user.name "Your Name" git config --global user.name "Your Name"
git submodule update --init --recursive git submodule update --init --recursive
./parchment jar ./parchment ghjar
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:

View File

@@ -80,6 +80,25 @@ case "$1" in
mvn clean install mvn clean install
) )
;; ;;
"ghjar")
(
# github install because workflows are dumb
basedir
cd "$basedir"
if [ "$2" != "fast" ]; then
scripts/upstream.sh
fi
./scripts/apply.sh "$basedir"
cd "$basedir"
mvn -N install
cd ${FORK_NAME}-Common && mvn -e clean install -Dmaven.javadoc.skip=true
cd ${FORK_NAME}-API && mvn -e clean install -Dmaven.javadoc.skip=true
cd ../Paper/Paper-MojangAPI && mvn -e clean install
cd ../../${FORK_NAME}-Server && mvn -e clean install
cd "$basedir"
./scripts/paperclip.sh
)
;;
"d" | "deploy") "d" | "deploy")
( (
basedir basedir