-
Notifications
You must be signed in to change notification settings - Fork 2
80 lines (66 loc) · 2.12 KB
/
python-app.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: kcwiki-lua-update
on:
push:
branches: [ master ]
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0 * * *'
jobs:
build:
name: Run Lua-table Build
runs-on: ubuntu-latest
env:
KCKIT_REPO_URL: https://github.com/TeamFleet/KCKit.git
KCKIT_REPO_BRANCH: master
WCTF_DB_REPO_URL: https://github.com/TeamFleet/WhoCallsTheFleet-DB.git
WCTF_DB_REPO_BRANCH: master
Check: on
Ships: on
Items: on
Shinkai: on
Wikiwiki: on
SeasonalSubtitles: on
ShipClassesMapping: on
steps:
- name: Run actions/[email protected]
uses: actions/[email protected]
- name: Set up Python 3.7 environment
uses: actions/[email protected]
with:
python-version: 3.7
- name: Set up Node.js environment
uses: actions/[email protected]
with:
node-version: '16'
# - name: Install NPM package
# run: npm install
- name: Run actions/[email protected]
uses: actions/[email protected]
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Before build
run: |
pip install -U pip setuptools
pip install hererocks
hererocks lua_install -r^ --lua=5.3
echo $PWD/lua_install/bin >> $GITHUB_PATH
pip install -r requirements.txt
- name: Run build
run: |
python LuatableBot.py
- name: Before deploy
run: |
cp docs/index.html output/index.html
cp docs/style.css output/style.css
echo bot.kcwiki.moe > output/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output