Add CD action flow
All checks were successful
Deploy to Pterodactyl / reinstall-server (push) Successful in 1m14s
All checks were successful
Deploy to Pterodactyl / reinstall-server (push) Successful in 1m14s
This commit is contained in:
25
.gitea/workflows/deploy.yml
Normal file
25
.gitea/workflows/deploy.yml
Normal 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"
|
||||
Reference in New Issue
Block a user