Skip to content

kcwiki-lua-update #1173

kcwiki-lua-update

kcwiki-lua-update #1173

Workflow file for this run

# 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 environment
uses: actions/[email protected]
with:
python-version: 3.10.13
- 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 git+https://github.com/luarocks/[email protected]
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