Update powershell script to use user inputs #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build LS files | |
on: | |
push: | |
workflow_call: | |
jobs: | |
build-ls-files: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Clone Eluna documentation repository | |
uses: actions/checkout@v4 | |
with: | |
repository: ElunaLuaEngine/ElunaLuaEngine.github.io | |
path: docs | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
architecture: 'x64' | |
- name: Install Python dependencies | |
run: pip install beautifulsoup4 | |
- name: Create build directory | |
run: mkdir -p ./build | |
- name: Build LuaLS definition files | |
run: bash runParser.sh ./parser.py ./docs ./build | |
- name: Upload built definitions | |
uses: actions/upload-artifact@v4 | |
with: | |
name: definitions | |
path: ./build |