test md to HTML #2
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: 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}")" | |
| ls $dirname | |
| done | |