Test
This commit is contained in:
19
.github/workflows/docs.yml
vendored
19
.github/workflows/docs.yml
vendored
@@ -24,12 +24,29 @@ jobs:
|
|||||||
run: luarocks install ldoc
|
run: luarocks install ldoc
|
||||||
- name: Build docs
|
- name: Build docs
|
||||||
run: |
|
run: |
|
||||||
|
echo "Current directory contents:"
|
||||||
|
ls -la
|
||||||
|
|
||||||
|
echo "Creating output directory..."
|
||||||
mkdir -p out
|
mkdir -p out
|
||||||
ldoc -c config.ld src
|
|
||||||
|
echo "Running LDoc..."
|
||||||
|
ldoc -c $(pwd)/config.ld $(pwd)/src --verbose --ext md
|
||||||
|
|
||||||
|
echo "Output directory contents:"
|
||||||
ls -la out/
|
ls -la out/
|
||||||
|
|
||||||
|
# Fail if no files were generated
|
||||||
|
if [ -z "$(ls -A out/)" ]; then
|
||||||
|
echo "Error: No documentation files were generated!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- 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: ./out
|
publish_dir: ./out
|
||||||
|
force_orphan: true # Start with a fresh branch each time
|
||||||
|
commit_message: "docs: update documentation [skip ci]"
|
||||||
Reference in New Issue
Block a user