auto deploy dev
This commit is contained in:
parent
129e37e1c3
commit
a8ef24704e
5 changed files with 30 additions and 7 deletions
21
.github/workflows/main.yml
vendored
Normal file
21
.github/workflows/main.yml
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
|
||||||
|
name: Publish Website
|
||||||
|
jobs:
|
||||||
|
web-deploy:
|
||||||
|
name: Deploy on commit DEV
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Get Latest Code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Sync Files
|
||||||
|
uses: SamKirkland/web-deploy@v1
|
||||||
|
with:
|
||||||
|
target-server: lanta.eu
|
||||||
|
remote-user: stats
|
||||||
|
private-ssh-key: ${{ secrets.SSH_KEY }}
|
||||||
|
destination-path: /var/www/lantaeu/DTCH_DEV/
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
||||||
config/config.php
|
config/config.php
|
||||||
data/telemetry_cache/*
|
data/telemetry_cache/*
|
||||||
|
temp/*
|
||||||
|
|
@ -72,10 +72,7 @@ foreach ($player in $all_player_matches.playername) {
|
||||||
matches = ($all_player_matches | where-object { $_.playername -eq $player }).player_matches.count
|
matches = ($all_player_matches | where-object { $_.playername -eq $player }).player_matches.count
|
||||||
KD_H = $humankills / $deaths
|
KD_H = $humankills / $deaths
|
||||||
KD_ALL = $kills / $deaths
|
KD_ALL = $kills / $deaths
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$currentDateTime = Get-Date
|
$currentDateTime = Get-Date
|
||||||
|
|
|
||||||
|
|
@ -59,9 +59,9 @@ $playermodes = @(
|
||||||
"solo",
|
"solo",
|
||||||
"duo",
|
"duo",
|
||||||
"squad"
|
"squad"
|
||||||
#"solo-fpp",
|
"solo-fpp",
|
||||||
#"duo-fpp",
|
"duo-fpp",
|
||||||
#"squad-fpp"
|
"squad-fpp"
|
||||||
)
|
)
|
||||||
# Initialize the master hashtable
|
# Initialize the master hashtable
|
||||||
$lifetimestats = @{}
|
$lifetimestats = @{}
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,10 @@ error_reporting(E_ALL);
|
||||||
<input type='submit' name='game_mode' value='solo' class='btn'>
|
<input type='submit' name='game_mode' value='solo' class='btn'>
|
||||||
<input type='submit' name='game_mode' value='duo' class='btn'>
|
<input type='submit' name='game_mode' value='duo' class='btn'>
|
||||||
<input type='submit' name='game_mode' value='squad' class='btn'>
|
<input type='submit' name='game_mode' value='squad' class='btn'>
|
||||||
|
|
||||||
|
<input type='submit' name='game_mode' value='solo-fpp' class='btn'>
|
||||||
|
<input type='submit' name='game_mode' value='duo-fpp' class='btn'>
|
||||||
|
<input type='submit' name='game_mode' value='squad-fpp' class='btn'>
|
||||||
</form><br>";
|
</form><br>";
|
||||||
|
|
||||||
// Buttons for each player
|
// Buttons for each player
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue