Add PagingButtons #120
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: Automatically deploy the project | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: 'Deploy' | |
steps: | |
- name: Cache Paper(clip) jars | |
id: cache-paperclip-jars | |
uses: actions/cache@v2 | |
with: | |
path: | | |
.paper-nms | |
build | |
paperclip | |
~/.m2/repository/io/papermc/paper | |
~/.m2/repository/ca/bkaw/paper-nms | |
key: ${{ runner.os }}-${{ secrets.CACHE_VERSION }}-paperclip | |
- name: Download Paperclip jars | |
if: steps.cache-paperclip-jars.outputs.cache-hit != 'true' | |
run: | | |
mkdir -p paperclip | |
wget https://papermc.io/api/v2/projects/paper/versions/1.14.4/builds/243/downloads/paper-1.14.4-243.jar -O paperclip/paper-1.14.4.jar | |
wget https://papermc.io/api/v2/projects/paper/versions/1.15.2/builds/391/downloads/paper-1.15.2-391.jar -O paperclip/paper-1.15.2.jar | |
wget https://papermc.io/api/v2/projects/paper/versions/1.16.1/builds/138/downloads/paper-1.16.1-138.jar -O paperclip/paper-1.16.1.jar | |
wget https://papermc.io/api/v2/projects/paper/versions/1.16.3/builds/253/downloads/paper-1.16.3-253.jar -O paperclip/paper-1.16.3.jar | |
wget https://papermc.io/api/v2/projects/paper/versions/1.16.4/builds/416/downloads/paper-1.16.4-416.jar -O paperclip/paper-1.16.4.jar | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Generate 1.14 - 1.16 Paper jars | |
if: steps.cache-paperclip-jars.outputs.cache-hit != 'true' | |
working-directory: paperclip | |
run: | | |
java -jar paper-1.14.4.jar | |
java -jar paper-1.15.2.jar | |
java -jar paper-1.16.1.jar | |
java -jar paper-1.16.3.jar | |
java -jar paper-1.16.4.jar | |
- name: Install 1.14 - 1.16 Paper jars | |
if: steps.cache-paperclip-jars.outputs.cache-hit != 'true' | |
working-directory: paperclip | |
run: | | |
mvn install:install-file -Dfile=cache/patched_1.14.4.jar -DgroupId="io.papermc" -DartifactId="paper" -Dversion="1.14.4-R0.1-SNAPSHOT" -Dpackaging="jar" | |
mvn install:install-file -Dfile=cache/patched_1.15.2.jar -DgroupId="io.papermc" -DartifactId="paper" -Dversion="1.15.2-R0.1-SNAPSHOT" -Dpackaging="jar" | |
mvn install:install-file -Dfile=cache/patched_1.16.1.jar -DgroupId="io.papermc" -DartifactId="paper" -Dversion="1.16.1-R0.1-SNAPSHOT" -Dpackaging="jar" | |
mvn install:install-file -Dfile=cache/patched_1.16.3.jar -DgroupId="io.papermc" -DartifactId="paper" -Dversion="1.16.3-R0.1-SNAPSHOT" -Dpackaging="jar" | |
mvn install:install-file -Dfile=cache/patched_1.16.4.jar -DgroupId="io.papermc" -DartifactId="paper" -Dversion="1.16.4-R0.1-SNAPSHOT" -Dpackaging="jar" | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- uses: actions/checkout@v2 | |
name: Checkout code | |
- name: Run paper-nms init | |
if: steps.cache-paperclip-jars.outputs.cache-hit != 'true' | |
run: | | |
mvn paper-nms:init -pl nms/1_17_0 | |
mvn paper-nms:init -pl nms/1_17_1 | |
mvn paper-nms:init -pl nms/1_18_0 | |
mvn paper-nms:init -pl nms/1_18_1 | |
mvn paper-nms:init -pl nms/1_18_2 | |
mvn paper-nms:init -pl nms/1_19_0 | |
mvn paper-nms:init -pl nms/1_19_1 | |
mvn paper-nms:init -pl nms/1_19_2 | |
mvn paper-nms:init -pl nms/1_19_3 | |
mvn paper-nms:init -pl nms/1_19_4 | |
mvn paper-nms:init -pl nms/1_20_0 | |
mvn paper-nms:init -pl nms/1_20_1 | |
mvn paper-nms:init -pl nms/1_20_2 | |
mvn paper-nms:init -pl nms/1_20_3-4 | |
- name: Setup GPG keys | |
run: cat <(echo -e "${{ secrets.GPG_KEY }}") | gpg --batch --import | |
- name: Automatically deploy the project | |
env: | |
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
deploy_password: ${{ secrets.DEPLOY_PASSWORD }} | |
run: bash ./.github/deployment/deploy.sh "$gpg_passphrase" "$deploy_password" |