Fix ailog build command arguments in all workflows
- Remove invalid --output option - ailog build only accepts path argument - Update gh-pages-fast.yml to use correct path - Update action.yml to use correct command syntax - Cloudflare workflow already correct 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
5
.github/workflows/gh-pages-fast.yml
vendored
5
.github/workflows/gh-pages-fast.yml
vendored
@@ -76,12 +76,13 @@ jobs:
|
|||||||
TZ: "Asia/Tokyo"
|
TZ: "Asia/Tokyo"
|
||||||
run: |
|
run: |
|
||||||
# Use pre-built ailog binary instead of cargo build
|
# Use pre-built ailog binary instead of cargo build
|
||||||
./bin/ailog build --output ./public
|
cd my-blog
|
||||||
|
../bin/ailog build
|
||||||
touch ./public/.nojekyll
|
touch ./public/.nojekyll
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
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: ./public
|
publish_dir: ./my-blog/public
|
||||||
publish_branch: gh-pages
|
publish_branch: gh-pages
|
15
action.yml
15
action.yml
@@ -100,12 +100,15 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
start_time=$(date +%s)
|
start_time=$(date +%s)
|
||||||
|
|
||||||
./bin/ailog-linux-x86_64 build \
|
# Change to blog directory and run build
|
||||||
--content ${{ inputs.content-dir }} \
|
# Note: ailog build only takes a path argument, not options
|
||||||
--output ${{ inputs.output-dir }} \
|
if [ -d "my-blog" ]; then
|
||||||
--templates ${{ inputs.template-dir }} \
|
cd my-blog
|
||||||
--static ${{ inputs.static-dir }} \
|
../bin/ailog-linux-x86_64 build
|
||||||
--config ${{ inputs.config-file }}
|
else
|
||||||
|
# If no my-blog directory, use current directory
|
||||||
|
./bin/ailog-linux-x86_64 build .
|
||||||
|
fi
|
||||||
|
|
||||||
end_time=$(date +%s)
|
end_time=$(date +%s)
|
||||||
build_time=$((end_time - start_time))
|
build_time=$((end_time - start_time))
|
||||||
|
Reference in New Issue
Block a user