Skip to content

Create server-deploy.yml #1

Create server-deploy.yml

Create server-deploy.yml #1

Workflow file for this run

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/