Skip to content

Commit

Permalink
Create auto-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatKoffe committed Nov 30, 2023
1 parent 7377be6 commit ca296b5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/auto-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Auto Deploy

on:
push:
branches: ['master']

env:
PTERO_PATH: /var/lib/pterodactyl/volumes/${{ secrets.PTERO_VOLUME }}
SERVER_ID: ${{ secrets.PTERO_SERVER_ID }}
SKYV_TOKEN: ${{ secrets.SKYV_TOKEN }}

jobs:
deployment:
runs-on: self-hosted

steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
- run: cp . $PTERO_PATH -r
- run: cd $PTERO_PATH && node skyv-restarter.js --token=$SKYV_TOKEN --server=$SERVER_ID

0 comments on commit ca296b5

Please sign in to comment.