Test
This commit is contained in:
10
.github/workflows/docs.yml
vendored
10
.github/workflows/docs.yml
vendored
@@ -18,20 +18,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
luaVersion: 5.4
|
luaVersion: 5.4
|
||||||
- name: Create docs directory
|
- name: Create docs directory
|
||||||
run: mkdir -p temp_docs
|
run: mkdir -p build_docs/docs/references
|
||||||
- name: Process markdown files
|
- name: Process markdown files
|
||||||
run: |
|
run: |
|
||||||
find src -type f -name "*.lua" | while read file; do
|
find src -type f -name "*.lua" | while read file; do
|
||||||
filename=$(basename "$file")
|
filename=$(basename "$file")
|
||||||
lua markdown.lua "$file" "temp_docs/${filename%.lua}.md"
|
lua markdown.lua "$file" "build_docs/docs/references/${filename%.lua}.md"
|
||||||
done
|
done
|
||||||
- name: Setup final structure
|
|
||||||
run: |
|
|
||||||
mkdir -p docs
|
|
||||||
mv temp_docs docs/references
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./docs
|
publish_dir: ./build_docs
|
||||||
Reference in New Issue
Block a user