Skip to content

Commit

Permalink
Create server-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kieransaul authored Oct 31, 2024
1 parent cbb7b82 commit 14e9d1b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/server-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
branches: [ main ]

jobs:
build:
name: deploy to prod
runs-on: cc-gamge01
steps:
- uses: actions/checkout@v2

- name: Stop Server
run: |
curl "https://game-admin.kscloud.co.uk/api/client/servers/c0c7c961/power" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer "${{ secrets.KSCLOUD_API }}' \
-X POST \
-d '{
"signal": "start"
}'
# - name: clean prod files
# run: rm -rf /var/www/cc-staffland/public_html/*
# - name: copy files to prod folder
# run: cp -R * /var/www/cc-staffland/public_html/

0 comments on commit 14e9d1b

Please sign in to comment.