-
-
Notifications
You must be signed in to change notification settings - Fork 35
39 lines (36 loc) · 1.31 KB
/
CD.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Continues Delivery
on:
push:
pull_request:
jobs:
PerformanceTest:
timeout-minutes: 43200
runs-on: self-hosted
steps:
- name: 'Cleanup build folder'
run: |
ls -la ./
rm -rf ./* || true
rm -rf ./.??* || true
ls -la ./
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'
- name: Get IP
run: hostname -I
- name: Install dependencies
run: npm install
- name: Setup required files
run: node helper/preBuild.js
- name: Build bot
run: npm run build
- name: Start instances
run: node helper/server --maxTicks=25000 --debug --tickDuration=10
env:
STEAM_API_KEY: ${{ secrets.STEAM_API_KEY }}
EXPORT_DISCORD_WEBHOOK_URL: ${{ secrets.EXPORT_DISCORD_WEBHOOK_URL }}
EXPORT_PASTEBIN_KEY: ${{ secrets.EXPORT_PASTEBIN_KEY }}
ACTIONS_RUNNER_NAME: ${{ runner.name }}