Skip to content

Commit

Permalink
fix workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
killers78 committed Mar 14, 2024
1 parent 981b961 commit 9de7cf3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/mdToHTML.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,26 @@ jobs:
- name: Install dependencies
run: go mod init blackfriday; go get github.com/russross/blackfriday/v2

- name: Convert Markdown to HTML
- name: Convert Markdown to HTML
run: go run ./src/convert_md_2_html.go
working-directory: ${{ github.workspace }}

- name: Find HTML Content and move to temp folder
run: |
mkdir -p www-temp
find platforms -type f -name \*.html | while read a; do mv $a ./www-temp/; done
working-directory: ${{ github.workspace }}

# Adding HTML CSS Header
- name: Adding HTML CSS Header
run: |
cd www-temp
mkdir css
cp ./src/css/*.html www-temp/css
cp ./src/css/*.css www-temp/
cp $GITHUB_WORKSPACE/src/css/*.html www-temp/css
cp $GITHUB_WORKSPACE/src/css/*.css www-temp/
ls -1 | while read i; do cp css/header.html tmp.html; cat $i >> tmp.html; mv tmp.html $i; rm -f tmp.html; done
ls -1 | while read i; do echo "-----------------"; cat $i; done
working-directory: ${{ github.workspace }}

# Setting up Git user to commit to the gh-pages branch
- name: Configure Git User
Expand Down

0 comments on commit 9de7cf3

Please sign in to comment.