Skip to content

Commit

Permalink
add debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyr committed Feb 15, 2024
1 parent 8415eab commit acc7694
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ jobs:
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"

- name: debug output
run: |
pwd
ls -al
git status
python --version
# pre-set content
- name: Checkout additional branch for Markdown files
uses: actions/checkout@v2
Expand All @@ -59,19 +66,17 @@ jobs:

- name: Process Markdown files
run: |
pwd
ls -al
git status
python --version
# Process Markdown files here
# For example, add front matter and remove drafts
for file in $MARKDOWN_DIR/*.md; do
sed -i '1s/^/---\n/' $file
sed -i '2s/^/draft: false\n---\n/' $file
done
cd ..
ls -al
pwd
- name: Move Markdown files to Hugo content directory
run: |
cd ..
mkdir -p content/extra # Create directory if not exist
mv $MARKDOWN_DIR/*.md content/extra/ # Move processed Markdown files to Hugo content directory
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.hugo_build.lock

public/

0 comments on commit acc7694

Please sign in to comment.