All checks were successful
Deploy to Pterodactyl / reinstall-server (push) Successful in 1m14s
26 lines
773 B
YAML
26 lines
773 B
YAML
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"
|