From acc769493d69810c5d630df30ccd8f6facbfc8dc Mon Sep 17 00:00:00 2001 From: Tyr Date: Thu, 15 Feb 2024 12:40:33 -0500 Subject: [PATCH] add debug output --- .github/workflows/hugo.yml | 15 ++++++++++----- .gitignore | 3 +++ 2 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 .gitignore diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 9983094..a60d90a 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -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 @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e82774d --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.hugo_build.lock + +public/ \ No newline at end of file