Skip to content

Commit

Permalink
Another attempt to fix github actions with title image
Browse files Browse the repository at this point in the history
  • Loading branch information
spmallette committed Jul 15, 2024
1 parent ea48384 commit ab8b679
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-asciidoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ jobs:
working-directory: ./book
run: |
asciidoctor Practical-Gremlin.adoc
sed -i "s/$search_string/$replace_string/g" "target/Practical-Gremlin.html"
SEARCH_STRING="<h1>PRACTICAL GREMLIN: An Apache TinkerPop Tutorial<\/h1>"
REPLACE_STRING='<img src="PRACTICAL-GREMLIN-Revised-v2.png">\n<h1>PRACTICAL GREMLIN:<br\/>An Apache TinkerPop Tutorial<\/h1>'
sed -i "s|${SEARCH_STRING}|${REPLACE_STRING}|g" "target/Practical-Gremlin.html"
mkdir ../target
cp Practical-Gremlin.html ../target/index.html
env:
search_string: "<h1>PRACTICAL GREMLIN: An Apache TinkerPop Tutorial</h1>"
replace_string: "<img src=\"PRACTICAL-GREMLIN-Revised-v2.png\">\n<h1>PRACTICAL GREMLIN:<br/>An Apache TinkerPop Tutorial</h1>"
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand Down

0 comments on commit ab8b679

Please sign in to comment.