Update test_build.yml #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Develop code to build markup files into HTML | ||
| # | ||
| name: test md to HTML | ||
| on: [workflow_dispatch] | ||
| permissions: | ||
| contents: write | ||
| id-token: write | ||
| pages: write | ||
| jobs: | ||
| build: # Build web pages | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Install pandoc | ||
| uses: pandoc/actions/setup@v1 | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Find tutorials | ||
| run: | | ||
| cd MDtutorials | ||
| ls | ||
| for path in ./*; do | ||
| [ -d "${path}" ] || continue # if not a directory, skip | ||
| dirname="$(basename "${path}")" | ||
| mkdir -v ../$dirname | ||
| for fil in $dirname/*.md; do | ||
| echo $fil | ||
| ls -l $fil | ||
| done | ||
| done | ||
| which pandoc | ||
| which sed | ||