Skip to content

Commit e518728

Browse files
committed
Merge master into nova-shrimpshuffler
2 parents 37a9ff1 + bd0a54f commit e518728

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

.github/workflows/workflow.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
17-
- uses: gradle/wrapper-validation-action@v1
17+
- uses: gradle/actions/wrapper-validation@v3
1818
build:
1919
if: (!startsWith(github.ref, 'refs/tags/v'))
2020
needs: validation
@@ -47,7 +47,7 @@ jobs:
4747
- name: Gradle build
4848
run: ./gradlew --build-cache --info --stacktrace build -Prelease.state=dev
4949
- name: Upload jar to build artifacts
50-
uses: actions/upload-artifact@v3
50+
uses: actions/upload-artifact@v4
5151
with:
5252
name: built-plugin
5353
path: build/libs/HCCore-Shadow-*.jar
@@ -93,7 +93,7 @@ jobs:
9393
(!contains(github.ref, '-rc.'))
9494
run: ./gradlew --build-cache --info --stacktrace -Prelease.useLastTag=true final
9595
- name: Upload jar to build artifacts
96-
uses: actions/upload-artifact@v3
96+
uses: actions/upload-artifact@v4
9797
with:
9898
name: built-plugin
9999
path: build/libs/HCCore-Shadow-*.jar
@@ -104,29 +104,29 @@ jobs:
104104
generate_release_notes: ${{ !(contains(github.ref, '-rc.')) }} # full releases only
105105
prerelease: ${{ contains(github.ref, '-rc.') }}
106106
files: "build/libs/HCCore-Shadow-*.jar"
107-
108-
deploy:
109-
if: |
110-
startsWith(github.ref, 'refs/tags/v') &&
111-
(!contains(github.ref, '-rc.'))
112-
needs: release
113-
runs-on: ubuntu-latest
114-
name: Deploy to Production Server
115-
steps:
116-
- name: Download released version
117-
uses: actions/download-artifact@v3
118-
with:
119-
name: built-plugin
120-
- name: SCP Deploy
121-
env:
122-
SSH_PRIVATE_KEY: ${{ secrets.MINECRAFT_DEPLOY_SSH_KEY }}
123-
run: |
124-
echo "$SSH_PRIVATE_KEY" > .ssh_private_key
125-
chmod 700 .ssh_private_key
126-
mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts
127-
ssh-keyscan mc-admin.hackclub.com >> ~/.ssh/known_hosts
128-
eval $(ssh-agent)
129-
ssh-add - <<< "$SSH_PRIVATE_KEY"
130-
scp -i .ssh_private_key HCCore-Shadow-*.jar [email protected]:/opt/minecraft/plugins/update
131-
rm .ssh_private_key
132107

108+
# TODO: Rework to support Pterodactyl Panel
109+
#deploy:
110+
# if: |
111+
# startsWith(github.ref, 'refs/tags/v') &&
112+
# (!contains(github.ref, '-rc.'))
113+
# needs: release
114+
# runs-on: ubuntu-latest
115+
# name: Deploy to Production Server
116+
# steps:
117+
# - name: Download released version
118+
# uses: actions/download-artifact@v4
119+
# with:
120+
# name: built-plugin
121+
# - name: SCP Deploy
122+
# env:
123+
# SSH_PRIVATE_KEY: ${{ secrets.MINECRAFT_DEPLOY_SSH_KEY }}
124+
# run: |
125+
# echo "$SSH_PRIVATE_KEY" > .ssh_private_key
126+
# chmod 700 .ssh_private_key
127+
# mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts
128+
# ssh-keyscan mc-admin.hackclub.com >> ~/.ssh/known_hosts
129+
# eval $(ssh-agent)
130+
# ssh-add - <<< "$SSH_PRIVATE_KEY"
131+
# scp -i .ssh_private_key HCCore-Shadow-*.jar [email protected]:/opt/minecraft/plugins/update
132+
# rm .ssh_private_key

0 commit comments

Comments
 (0)