-
Notifications
You must be signed in to change notification settings - Fork 36
39 lines (37 loc) · 940 Bytes
/
build-fgds.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: FGD Build
on:
push:
branches: [ master, dev ]
paths:
- 'fgd/**'
pull_request:
branches: [ master, dev ]
paths:
- 'fgd/**'
workflow_dispatch:
# Allow triggering manually whenever it's useful.
permissions:
contents: read
pull-requests: read
jobs:
build-fgds:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'requirements.txt'
- name: Install srctools
run: python -m pip install -r requirements.txt
- name: FGD build and folder copy
run: bash ./build.sh all
- name: Artifact upload
uses: actions/upload-artifact@v2
with:
name: build-${{ github.sha }}
path: ./build/*.fgd
if-no-files-found: error