-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (30 loc) · 1022 Bytes
/
build-station.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
name: Build Station
on:
workflow_dispatch:
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
with:
lfs: true
- name: Install golang deps
run: ./install-go-dependencies.sh
- name: Install system python deps
run: sudo apt update && sudo apt install python3-ply python3-pil libjpeg-dev zlib1g-dev
- name: Get setuptools
run: pip install --upgrade setuptools
- name: Install python deps
run: pip install -r requirements.txt
- name: Generate station
run: PATH=${PWD}/gopath/bin:${PATH} make station; mkdir release; mv station.grf release/
- name: Pack documentation
run: cp docs/station/changelog.md release/changelog.txt; cp docs/station/readme.md release/readme.txt
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: china-set-stations-wuhu
path: release
retention-days: 7