Add CD action flow
All checks were successful
Deploy to Pterodactyl / reinstall-server (push) Successful in 1m14s

This commit is contained in:
2026-08-19 15:03:07 +00:00
parent fcd5be9eed
commit 0c84de6136

View File

@@ -0,0 +1,25 @@
name: Deploy to Pterodactyl
on:
push:
branches:
- main
- master
jobs:
reinstall-server:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Call Pterodactyl API to reinstall server
env:
PTERODACTYL_URL: ${{ secrets.PTERODACTYL_URL }}
PTERODACTYL_API_KEY: ${{ secrets.PTERODACTYL_API_KEY }}
PTERODACTYL_SERVER_ID: ${{ secrets.PTERODACTYL_SERVER_ID }}
run: |
curl -X POST "${{ env.PTERODACTYL_URL }}/api/application/servers/${{ env.PTERODACTYL_SERVER_ID }}/reinstall" \
-H "Authorization: Bearer ${{ env.PTERODACTYL_API_KEY }}" \
-H "Accept: application/json" \
-H "Content-Type: application/json"