LuaLS Test
This commit is contained in:
8
.github/workflows/docs.yml
vendored
8
.github/workflows/docs.yml
vendored
@@ -26,16 +26,16 @@ jobs:
|
||||
with:
|
||||
ref: gh-pages
|
||||
path: build_docs
|
||||
- name: Prepare content directory
|
||||
- name: Prepare references directory
|
||||
run: |
|
||||
mkdir -p build_docs/docs
|
||||
rm -rf build_docs/docs/content
|
||||
mkdir -p build_docs/docs/content
|
||||
rm -rf build_docs/docs/references
|
||||
mkdir -p build_docs/docs/references
|
||||
- name: Process markdown files
|
||||
run: |
|
||||
find src -type f -name "*.lua" | while read file; do
|
||||
filename=$(basename "$file")
|
||||
lua markdown.lua "$file" "build_docs/docs/content/${filename%.lua}.md"
|
||||
lua markdown.lua "$file" "build_docs/docs/references/${filename%.lua}.md"
|
||||
done
|
||||
- name: Deploy
|
||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||
|
||||
Reference in New Issue
Block a user