-
Notifications
You must be signed in to change notification settings - Fork 74
47 lines (47 loc) · 1.42 KB
/
main.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
40
41
42
43
44
45
46
47
name: Build Win/Linux Steam (Beta)
on:
push:
branches:
- main
workflow_dispatch:
jobs:
run-script:
runs-on: [self-hosted]
if: contains(github.event.head_commit.message, '[build]') || github.event_name == 'workflow_dispatch'
steps:
- name: GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- run: |
git checkout .
git pull
git submodule update --recursive --remote --init
pnpm install
working-directory: /home/insraq/CivIdle
- run: |
npm install
working-directory: /home/insraq/CivIdle/electron
- run: |
pnpm install
pnpm run ci
working-directory: /home/insraq/CivIdle/test
- run: |
npm install
working-directory: /home/insraq/CivIdle/server
- run: |
npm run clean
working-directory: /home/insraq/CivIdle/shared
- run: npm run release
working-directory: /home/insraq/CivIdle
env:
STEAMWORKS_PATH: /home/insraq/steamworks/tools/ContentBuilder/
- run: |
git add src/scripts/Version.json
git commit -m "[skip ci] New build" || echo "There's nothing to commit"
git push
working-directory: /home/insraq/CivIdle